diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2017-07-24 08:02:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-24 20:28:12 -0400 |
commit | e42e24c3cc072088756d84ef07b492ac2a3ae2e5 (patch) | |
tree | 4866ef0eed04cee3ae4522ffd5a4f61a3b3fef3a /net/ipv4/tcp_input.c | |
parent | f575a02ee76cda1eff5e6949aff7cf5c386e3977 (diff) |
tcp: remove redundant argument from tcp_rcv_established()
The last (4th) argument of tcp_rcv_established() is redundant as it
always equals to skb->len and the skb itself is always passed as 2th
agrument. There is no reason to have it.
Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 2920e0cb09f8..adc3f3e9468c 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -5358,8 +5358,9 @@ discard: | |||
5358 | * tcp_data_queue when everything is OK. | 5358 | * tcp_data_queue when everything is OK. |
5359 | */ | 5359 | */ |
5360 | void tcp_rcv_established(struct sock *sk, struct sk_buff *skb, | 5360 | void tcp_rcv_established(struct sock *sk, struct sk_buff *skb, |
5361 | const struct tcphdr *th, unsigned int len) | 5361 | const struct tcphdr *th) |
5362 | { | 5362 | { |
5363 | unsigned int len = skb->len; | ||
5363 | struct tcp_sock *tp = tcp_sk(sk); | 5364 | struct tcp_sock *tp = tcp_sk(sk); |
5364 | 5365 | ||
5365 | tcp_mstamp_refresh(tp); | 5366 | tcp_mstamp_refresh(tp); |