diff options
author | Joel Sherrill <joel@rtems.org> | 2017-04-24 11:15:18 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-04-24 12:00:57 -0500 |
commit | 523b4fbbf7e93b8c642574bf4b8c3bfce9631163 (patch) | |
tree | 2f2d6c08388c3b656b196d782d17f2a3a424fd5d | |
parent | ratemonreportstatistics.c: Fix printf() warnings so clean on 32 and 64 bit ar... (diff) | |
download | rtems-523b4fbbf7e93b8c642574bf4b8c3bfce9631163.tar.bz2 |
mcf5235/console/console.c: Fix indentation and add braces
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/console/console.c | 11 |
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 ) |