diff options
author | Anton Wuerfel <anton.wuerfel@fau.de> | 2016-01-14 16:08:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-06 23:15:53 -0800 |
commit | 149a44cc98cfd776b9c17fe10fb8eca12cd5212a (patch) | |
tree | 5288d62ff5811d2fb5925b65e2d308577e686d31 /drivers/tty/serial/8250/8250_pci.c | |
parent | 207c28b1c6b5216247317b1222baa777ee87e632 (diff) | |
download | linux-stable-149a44cc98cfd776b9c17fe10fb8eca12cd5212a.tar.gz linux-stable-149a44cc98cfd776b9c17fe10fb8eca12cd5212a.tar.bz2 linux-stable-149a44cc98cfd776b9c17fe10fb8eca12cd5212a.zip |
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>
Diffstat (limited to 'drivers/tty/serial/8250/8250_pci.c')
-rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 123319738a89..ec8a63573fd2 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -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; |