[linux-yocto] [PATCH 55/57] LSI drivers/tty/serial: Checkpatch 'Axxia Serial Driver Update'
Charlie Paul
cpaul.windriver at gmail.com
Mon Mar 17 21:56:55 PDT 2014
Code syntax updates as per checkpatch ouput
Signed-off-by: Charlie Paul <cpaul.windriver at gmail.com>
---
drivers/tty/serial/lsi_acp_serial.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/lsi_acp_serial.c b/drivers/tty/serial/lsi_acp_serial.c
index aa92920..c03f29b 100644
--- a/drivers/tty/serial/lsi_acp_serial.c
+++ b/drivers/tty/serial/lsi_acp_serial.c
@@ -424,7 +424,7 @@ unsigned int acp_serial_get_mctrl(struct uart_port *port)
#define TIOCMBIT(uartbit, tiocmbit) do { \
if (status & (uartbit)) \
result |= (tiocmbit); \
-} while (0);
+} while (0)
TIOCMBIT(UART01x_FR_DCD, TIOCM_CAR);
TIOCMBIT(UART01x_FR_DSR, TIOCM_DSR);
TIOCMBIT(UART01x_FR_CTS, TIOCM_CTS);
@@ -445,7 +445,7 @@ void acp_serial_set_mctrl(struct uart_port *port, unsigned int mctrl)
cr |= uartbit; \
else \
cr &= ~uartbit; \
-} while (0);
+} while (0)
TIOCMBIT(TIOCM_RTS, UART011_CR_RTS);
TIOCMBIT(TIOCM_DTR, UART011_CR_DTR);
--
1.7.9.5
More information about the linux-yocto
mailing list