diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-21 18:45:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-21 18:45:34 -0700 |
commit | b32d13102d39ed411d152a7ffcc5f66d5b3b1b49 (patch) | |
tree | 5db024bc2defe8440ea67c16dce65c4082ff4b98 /net/netrom | |
parent | ebb36a978131810c98e7198b1187090c697cf99f (diff) | |
download | op-kernel-dev-b32d13102d39ed411d152a7ffcc5f66d5b3b1b49.zip op-kernel-dev-b32d13102d39ed411d152a7ffcc5f66d5b3b1b49.tar.gz |
tcp: Fix bitmask test in tcp_syn_options()
As reported by Alexey Dobriyan:
CHECK net/ipv4/tcp_output.c
net/ipv4/tcp_output.c:475:7: warning: dubious: !x & y
And sparse is damn right!
if (unlikely(!OPTION_TS & opts->options))
^^^
size += TCPOLEN_SACKPERM_ALIGNED;
OPTION_TS is (1 << 1), so condition will never trigger.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions