From 0a84172b633af591a24e4a5637f197ae54e00c04 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 23 Apr 2017 19:42:09 -0500 Subject: uC5282/console/console.c: Add braces and correct indentation to fix warnings --- c/src/lib/libbsp/m68k/uC5282/console/console.c | 11 ++++++----- 1 file 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 ) -- cgit v1.2.3