[rtems commit] mcf5235/console/console.c: Fix indentation and add braces

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


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Apr 24 11:15:18 2017 -0500

mcf5235/console/console.c: Fix indentation and add braces

---

 c/src/lib/libbsp/m68k/mcf5235/console/console.c | 11 ++++++-----
 1 file 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 6fd92aa..4829de0 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 )




More information about the vc mailing list