ipv4: clean up cookie_v4_check()
authorCong Wang <cwang@twopensource.com>
Wed, 15 Oct 2014 21:33:22 +0000 (14:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Oct 2014 16:02:57 +0000 (12:02 -0400)
commit461b74c391c4ec9c766794e158508c357d8952e6
tree19cfb1a79b6dc5c9141022985c3917fc2d90b7a1
parente25f866fbc8a4bf387b5dbe8e25aa5b07e55c74f
ipv4: clean up cookie_v4_check()

We can retrieve opt from skb, no need to pass it as a parameter.
And opt should always be non-NULL, no need to check.

Cc: Krzysztof Kolasa <kkolasa@winsoft.pl>
Cc: Eric Dumazet <edumazet@google.com>
Tested-by: Krzysztof Kolasa <kkolasa@winsoft.pl>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp_ipv4.c