[PATCH 02/11] tty: serial: amba-pl010: Fix 2 coding style issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Zihao Tang <tangzihao1@xxxxxxxxxxxxx>

Fix the following 2 coding style issues reported by checkpatch.pl:

  ERROR: trailing whitespace
  #387: FILE: ./drivers/tty/serial/amba-pl010.c:387

  ERROR: Macros with complex values should be enclosed in parentheses
  #676: FILE: ./drivers/tty/serial/amba-pl010.c:676

Signed-off-by: Zihao Tang <tangzihao1@xxxxxxxxxxxxx>
Signed-off-by: Jay Fang <f.fangjian@xxxxxxxxxx>
---
 drivers/tty/serial/amba-pl010.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/amba-pl010.c b/drivers/tty/serial/amba-pl010.c
index e744b95..b12ad58 100644
--- a/drivers/tty/serial/amba-pl010.c
+++ b/drivers/tty/serial/amba-pl010.c
@@ -384,7 +384,7 @@ pl010_set_termios(struct uart_port *port, struct ktermios *termios,
 	/*
 	 * Ask the core to calculate the divisor for us.
 	 */
-	baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16); 
+	baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16);
 	quot = uart_get_divisor(port, baud);
 
 	switch (termios->c_cflag & CSIZE) {
@@ -673,7 +673,7 @@ static struct console amba_console = {
 	.data		= &amba_reg,
 };
 
-#define AMBA_CONSOLE	&amba_console
+#define AMBA_CONSOLE	(&amba_console)
 #else
 #define AMBA_CONSOLE	NULL
 #endif
-- 
2.7.4




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux