tty: serial: 8250: Add parentheses to macro
authorAnton Wuerfel <anton.wuerfel@fau.de>
Thu, 14 Jan 2016 15:08:17 +0000 (16:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:15:53 +0000 (23:15 -0800)
This patch fixes a checkpatch warning caused by missing parentheses
in the definition of a macro.
Furthermore redundant parentheses are removed in an assignment.

Signed-off-by: Anton Würfel <anton.wuerfel@fau.de>
Signed-off-by: Phillip Raffeck <phillip.raffeck@fau.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@i4.cs.fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_pci.c

index 3d96238..9947d38 100644 (file)
@@ -691,7 +691,7 @@ static int __init univ8250_console_init(void)
 }
 console_initcall(univ8250_console_init);
 
-#define SERIAL8250_CONSOLE     &univ8250_console
+#define SERIAL8250_CONSOLE     (&univ8250_console)
 #else
 #define SERIAL8250_CONSOLE     NULL
 #endif
index 1233197..ec8a635 100644 (file)
@@ -803,7 +803,7 @@ static int pci_netmos_9900_numports(struct pci_dev *dev)
        unsigned int pi;
        unsigned short sub_serports;
 
-       pi = (c & 0xff);
+       pi = c & 0xff;
 
        if (pi == 2)
                return 1;