summaryrefslogtreecommitdiffstats
path: root/net/rds/send.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-06 15:38:58 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-08 05:03:54 +0200
commiteef5a7cc2a571eb2176c8b9260d4ccfc9f6be127 (patch)
tree3f93b7efd189c7842a26af83341d597dce44edac /net/rds/send.c
parentudp: drop head states only when all skb references are gone (diff)
downloadlinux-eef5a7cc2a571eb2176c8b9260d4ccfc9f6be127.tar.xz
linux-eef5a7cc2a571eb2176c8b9260d4ccfc9f6be127.zip
isdn: isdnloop: fix logic error in isdnloop_sendbuf
gcc-7 found an ancient bug in the loop driver, leading to a condition that is always false, meaning we ignore the contents of 'card->flags' here: drivers/isdn/isdnloop/isdnloop.c:412:37: error: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Werror=int-in-bool-context] This changes the braces in the expression to ensure we actually compare the flag bits, rather than comparing a constant. As Joe Perches pointed out, an earlier patch of mine incorrectly assumed this was a false-positive warning. Cc: Joe Perches <joe@perches.com> Link: https://patchwork.kernel.org/patch/9840289/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/send.c')
0 files changed, 0 insertions, 0 deletions