[rtems commit] leon2/console/debugputs.c: Fix misleading indentation warning

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


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

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

leon2/console/debugputs.c: Fix misleading indentation warning

---

 c/src/lib/libbsp/sparc/leon2/console/debugputs.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon2/console/debugputs.c b/c/src/lib/libbsp/sparc/leon2/console/debugputs.c
index fe9b3dd..c5919f2 100644
--- a/c/src/lib/libbsp/sparc/leon2/console/debugputs.c
+++ b/c/src/lib/libbsp/sparc/leon2/console/debugputs.c
@@ -41,12 +41,12 @@ void console_outbyte_polled(
 {
   if ( port == 0 ) {
     while ( (LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE) == 0 );
-      LEON_REG.UART_Channel_1 = (unsigned int) ch;
-      return;
-    }
+    LEON_REG.UART_Channel_1 = (unsigned int) ch;
+    return;
+  }
 
-    while ( (LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE) == 0 );
-    LEON_REG.UART_Channel_2 = (unsigned int) ch;
+  while ( (LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE) == 0 );
+  LEON_REG.UART_Channel_2 = (unsigned int) ch;
 }
 
 /*



More information about the vc mailing list