s5j/serial: fix trivial coding style issues
authorHeesub Shin <heesub.shin@samsung.com>
Thu, 11 May 2017 02:46:13 +0000 (11:46 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 23 May 2017 12:40:00 +0000 (21:40 +0900)
Fixes trivial coding style issues.

Change-Id: I1611293045d1b24971e7fde884db1e82a1732086
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/s5j/s5j_serial.c

index 5ac051b..b764e8e 100644 (file)
@@ -503,7 +503,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
                if (priv->parity) {
                        termiosp->c_cflag |= PARENB;
                        if (priv->parity == 1) {
-                                       termiosp->c_cflag |= PARODD;
+                               termiosp->c_cflag |= PARODD;
                        }
                }
 
@@ -968,7 +968,9 @@ void up_lowputc(char ch)
        while (1) {
                /* Wait for the transmitter to be available */
                while ((uart_getreg32(CONSOLE_DEV.priv, S5J_UART_UTRSTAT_OFFSET) &
-                                       UART_UTRSTAT_TX_BUF_MASK) != UART_UTRSTAT_TX_BUF_EMPTY);
+                                       UART_UTRSTAT_TX_BUF_MASK) != UART_UTRSTAT_TX_BUF_EMPTY) {
+                       /* Polling */
+               }
 
                /*
                 * Disable interrupts so that the test and the transmission are