summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libbsp/m68k/mcf5235/console/console.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5235/console/console.c b/c/src/lib/libbsp/m68k/mcf5235/console/console.c
index 6fd92aa557..4829de0b0f 100644
--- a/c/src/lib/libbsp/m68k/mcf5235/console/console.c
+++ b/c/src/lib/libbsp/m68k/mcf5235/console/console.c
@@ -94,11 +94,12 @@ IntUartSet(int minor, int baud, int databits, int parity, int stopbits, int hwfl
info->stopbits = stopbits;
info->hwflow = hwflow;
- clock_speed = get_CPU_clock_speed();
- /* determine the baud divisor value */
- divisor = ((clock_speed/2) / ( 32 * baud ));
- if ( divisor < 2 )
- divisor = 2;
+ clock_speed = get_CPU_clock_speed();
+ /* determine the baud divisor value */
+ divisor = ((clock_speed/2) / ( 32 * baud ));
+ if ( divisor < 2 ) {
+ divisor = 2;
+ }
/* check to see if doing hardware flow control */
if ( hwflow )