[rtems commit] uC5282/console/console.c: Add braces and correct indentation to fix warnings

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    0a84172b633af591a24e4a5637f197ae54e00c04
Changeset: http://git.rtems.org/rtems/commit/?id=0a84172b633af591a24e4a5637f197ae54e00c04

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 19:42:09 2017 -0500

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 e2c29c0..485db20 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 )



More information about the vc mailing list