net: cavium: liquidio: fix check for in progress flag
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Feb 2016 16:30:39 +0000 (16:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2016 11:05:41 +0000 (06:05 -0500)
commit19a6d156a7bd080f3a855a40a4a08ab475e34b4a
treeb23da02c6fb0f0157f0d632adeff4eed06672e2e
parent14a03cf80edf3e19953bb744938e48bc9d496d30
net: cavium: liquidio: fix check for in progress flag

smatch detected a suspicious looking bitop condition:

drivers/net/ethernet/cavium/liquidio/lio_main.c:2529
  handle_timestamp() warn: suspicious bitop condition

(skb_shinfo(skb)->tx_flags | SKBTX_IN_PROGRESS is always non-zero,
so the logic is definitely not correct.  Use & to mask the correct
bit.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c