diff options
| author | Eric Dumazet <[email protected]> | 2015-09-29 14:42:41 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-09-29 23:53:07 +0000 |
| commit | 72ab4a86f7a260d4c2a320b49662da107ce77a81 (patch) | |
| tree | 7b0a638c8b46212057b1b78f809ddc650fe1fb7b /net/ipv6/tcp_ipv6.c | |
| parent | tcp: remove unused len argument from tcp_rcv_state_process() (diff) | |
| download | kernel-72ab4a86f7a260d4c2a320b49662da107ce77a81.tar.gz kernel-72ab4a86f7a260d4c2a320b49662da107ce77a81.zip | |
tcp: remove tcp_rcv_state_process() tcp_hdr argument
Factorize code to get tcp header from skb. It makes no sense
to duplicate code in callers.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index b6e473f0f62e..334d548a0cf6 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1272,7 +1272,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb) } else sock_rps_save_rxhash(sk, skb); - if (tcp_rcv_state_process(sk, skb, tcp_hdr(skb))) + if (tcp_rcv_state_process(sk, skb)) goto reset; if (opt_skb) goto ipv6_pktoptions; |
