diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2017-07-24 14:02:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-25 02:28:12 +0200 |
commit | e42e24c3cc072088756d84ef07b492ac2a3ae2e5 (patch) | |
tree | 4866ef0eed04cee3ae4522ffd5a4f61a3b3fef3a /net/ipv4/tcp_ipv4.c | |
parent | mlx4_en: remove unnecessary error check (diff) | |
download | linux-e42e24c3cc072088756d84ef07b492ac2a3ae2e5.tar.xz linux-e42e24c3cc072088756d84ef07b492ac2a3ae2e5.zip |
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_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index a20e7f03d5f7..3a19ea28339f 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1458,7 +1458,7 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb) sk->sk_rx_dst = NULL; } } - tcp_rcv_established(sk, skb, tcp_hdr(skb), skb->len); + tcp_rcv_established(sk, skb, tcp_hdr(skb)); return 0; } |