summaryrefslogtreecommitdiffstats
path: root/net/ipv4/syncookies.c
diff options
context:
space:
mode:
authorWeilong Chen2013-12-23 07:37:27 +0100
committerDavid S. Miller2013-12-26 19:43:21 +0100
commit0c9a67d2ed028e0edd3260abafef4f1efd91aa5a (patch)
tree6e0f51d336a6f8e0add6a1c9df3dd721063a07a8 /net/ipv4/syncookies.c
parentipv4: do clean up with spaces (diff)
downloadkernel-qcow2-linux-0c9a67d2ed028e0edd3260abafef4f1efd91aa5a.tar.gz
kernel-qcow2-linux-0c9a67d2ed028e0edd3260abafef4f1efd91aa5a.tar.xz
kernel-qcow2-linux-0c9a67d2ed028e0edd3260abafef4f1efd91aa5a.zip
ipv4: fix checkpatch error "space prohibited"
Signed-off-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r--net/ipv4/syncookies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c
index b95331e6c077..f2ed13c2125f 100644
--- a/net/ipv4/syncookies.c
+++ b/net/ipv4/syncookies.c
@@ -121,7 +121,7 @@ static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr,
cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
/* Cookie is now reduced to (count * 2^24) ^ (hash % 2^24) */
- diff = (count - (cookie >> COOKIEBITS)) & ((__u32) - 1 >> COOKIEBITS);
+ diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS);
if (diff >= MAX_SYNCOOKIE_AGE)
return (__u32)-1;