Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 149a44cc authored by Anton Wuerfel's avatar Anton Wuerfel Committed by Greg Kroah-Hartman
Browse files

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: default avatarAnton Würfel <anton.wuerfel@fau.de>
Signed-off-by: default avatarPhillip Raffeck <phillip.raffeck@fau.de>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@i4.cs.fau.de
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 207c28b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;