summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-23 19:42:09 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:54 -0500
commit0a84172b633af591a24e4a5637f197ae54e00c04 (patch)
treeff9ed955044e719dc12b6cd537f18c7149ba2184
parentepiphany/cpu.c: Fix not a prototype warning (diff)
downloadrtems-0a84172b633af591a24e4a5637f197ae54e00c04.tar.bz2
uC5282/console/console.c: Add braces and correct indentation to fix warnings
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/console/console.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/console/console.c b/c/src/lib/libbsp/m68k/uC5282/console/console.c
index e2c29c0914..485db20ae4 100644
--- a/c/src/lib/libbsp/m68k/uC5282/console/console.c
+++ b/c/src/lib/libbsp/m68k/uC5282/console/console.c
@@ -110,11 +110,12 @@ IntUartSet(int minor, int baud, int databits, int parity, int stopbits, int hwfl
info->stopbits = stopbits;
info->hwflow = hwflow;
- clock_speed = bsp_get_CPU_clock_speed();
- /* determine the baud divisor value */
- divisor = (clock_speed / ( 32 * baud ));
- if ( divisor < 2 )
- divisor = 2;
+ clock_speed = bsp_get_CPU_clock_speed();
+ /* determine the baud divisor value */
+ divisor = (clock_speed / ( 32 * baud ));
+ if ( divisor < 2 ) {
+ divisor = 2;
+ }
/* check to see if doing hardware flow control */
if ( hwflow )