summaryrefslogtreecommitdiff
path: root/net/l2tp
diff options
context:
space:
mode:
authorTom Parkin <tparkin@katalix.com>2020-09-03 11:54:48 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-03 22:19:03 +0300
commit039bca78cb7cce6cc2b8b1a2b0a0d8fa8ba49a84 (patch)
treeb839042b1687799b6824b19ee8742e437f9a8167 /net/l2tp
parentefe0527882a348b55415720c6e46448d3ca87dd9 (diff)
downloadlinux-039bca78cb7cce6cc2b8b1a2b0a0d8fa8ba49a84.tar.xz
l2tp: drop data_len argument from l2tp_xmit_core
The data_len argument passed to l2tp_xmit_core is no longer used, so remove it. Signed-off-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index c95b58b2ab3c..4a8fb285fada 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -985,8 +985,7 @@ static int l2tp_build_l2tpv3_header(struct l2tp_session *session, void *buf)
return bufp - optr;
}
-static void l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
- struct flowi *fl, size_t data_len)
+static void l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb, struct flowi *fl)
{
struct l2tp_tunnel *tunnel = session->tunnel;
unsigned int len = skb->len;
@@ -1098,7 +1097,7 @@ int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb)
break;
}
- l2tp_xmit_core(session, skb, fl, data_len);
+ l2tp_xmit_core(session, skb, fl);
out_unlock:
bh_unlock_sock(sk);