From 523b4fbbf7e93b8c642574bf4b8c3bfce9631163 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 24 Apr 2017 11:15:18 -0500 Subject: 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 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 ) -- cgit v1.2.3