aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorMatvejchikov Ilya <matvejchikov@gmail.com>2017-07-24 16:02:12 +0400
committerDavid S. Miller <davem@davemloft.net>2017-07-24 17:28:12 -0700
commite42e24c3cc072088756d84ef07b492ac2a3ae2e5 (patch)
tree4866ef0eed04cee3ae4522ffd5a4f61a3b3fef3a /net/ipv6/tcp_ipv6.c
parentmlx4_en: remove unnecessary error check (diff)
downloadlinux-dev-e42e24c3cc072088756d84ef07b492ac2a3ae2e5.tar.xz
linux-dev-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/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 2521690d62d6..90a32576c3d0 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1296,7 +1296,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
}
}
- tcp_rcv_established(sk, skb, tcp_hdr(skb), skb->len);
+ tcp_rcv_established(sk, skb, tcp_hdr(skb));
if (opt_skb)
goto ipv6_pktoptions;
return 0;