diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2019-01-31 11:06:28 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-31 19:34:10 +0100 |
commit | 9c6a2583f115acf29a27709ca9ce37714d04fb24 (patch) | |
tree | 18a473f2a6e886172d2adb390981827989a4224e /net/mac802154/mib.c | |
parent | 7ab57b76ebf632bf2231ccabe26bea33868118c6 (diff) | |
download | linux-9c6a2583f115acf29a27709ca9ce37714d04fb24.tar.bz2 |
serial: mps2-uart: Add parentheses around conditional in mps2_uart_shutdown
Clang warns:
drivers/tty/serial/mps2-uart.c:351:6: warning: logical not is only
applied to the left hand side of this bitwise operator
[-Wlogical-not-parentheses]
if (!mps_port->flags & UART_PORT_COMBINED_IRQ) {
^ ~
drivers/tty/serial/mps2-uart.c:351:6: note: add parentheses after the
'!' to evaluate the bitwise operator first
if (!mps_port->flags & UART_PORT_COMBINED_IRQ) {
^
( )
drivers/tty/serial/mps2-uart.c:351:6: note: add parentheses around left
hand side expression to silence this warning
if (!mps_port->flags & UART_PORT_COMBINED_IRQ) {
^
( )
1 warning generated.
As it was intended for this check to be the inverse of the one at the
bottom of mps2_init_port, add parentheses around the whole conditional.
Fixes: 775ea4ea2fd9 ("serial: mps2-uart: support combined irq")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Vladimir Murzin <vladimir.murzin@arm.com>
Link: https://github.com/ClangBuiltLinux/linux/issues/344
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac802154/mib.c')
0 files changed, 0 insertions, 0 deletions