Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: 8250: Add parentheses to macro

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>

authored by

Anton Wuerfel and committed by
Greg Kroah-Hartman
149a44cc 207c28b1

+2 -2
+1 -1
drivers/tty/serial/8250/8250_core.c
··· 691 691 } 692 692 console_initcall(univ8250_console_init); 693 693 694 - #define SERIAL8250_CONSOLE &univ8250_console 694 + #define SERIAL8250_CONSOLE (&univ8250_console) 695 695 #else 696 696 #define SERIAL8250_CONSOLE NULL 697 697 #endif
+1 -1
drivers/tty/serial/8250/8250_pci.c
··· 803 803 unsigned int pi; 804 804 unsigned short sub_serports; 805 805 806 - pi = (c & 0xff); 806 + pi = c & 0xff; 807 807 808 808 if (pi == 2) 809 809 return 1;