aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 10:42:41 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-29 19:53:07 -0400
commit72ab4a86f7a260d4c2a320b49662da107ce77a81 (patch)
tree7b0a638c8b46212057b1b78f809ddc650fe1fb7b /net/ipv4/tcp_input.c
parentbda07a64c09c44ced789dbb815c71854f0c59839 (diff)
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 <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index dcbddf12f4b3..67b27aee8d28 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5698,11 +5698,11 @@ reset_and_undo:
5698 * address independent. 5698 * address independent.
5699 */ 5699 */
5700 5700
5701int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb, 5701int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb)
5702 const struct tcphdr *th)
5703{ 5702{
5704 struct tcp_sock *tp = tcp_sk(sk); 5703 struct tcp_sock *tp = tcp_sk(sk);
5705 struct inet_connection_sock *icsk = inet_csk(sk); 5704 struct inet_connection_sock *icsk = inet_csk(sk);
5705 const struct tcphdr *th = tcp_hdr(skb);
5706 struct request_sock *req; 5706 struct request_sock *req;
5707 int queued = 0; 5707 int queued = 0;
5708 bool acceptable; 5708 bool acceptable;