summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-06-25 16:07:25 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-26 22:55:51 +0900
commit2685fbb8044f9bd8d3b5de1fa7854fea655f2df6 (patch)
tree9ca18de255235800250ee246bf7413fdc9259b34 /net/l2tp
parent363a341d190bde3f6d5f2786feefb9f1a7a45b95 (diff)
downloadop-kernel-dev-2685fbb8044f9bd8d3b5de1fa7854fea655f2df6.zip
op-kernel-dev-2685fbb8044f9bd8d3b5de1fa7854fea655f2df6.tar.gz
l2tp: make l2tp_xmit_core() return void
It always returns 0, and nobody reads the return value anyway. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index 88c3001..1ea285b 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -1007,8 +1007,8 @@ static int l2tp_build_l2tpv3_header(struct l2tp_session *session, void *buf)
return bufp - optr;
}
-static int 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, size_t data_len)
{
struct l2tp_tunnel *tunnel = session->tunnel;
unsigned int len = skb->len;
@@ -1050,8 +1050,6 @@ static int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
atomic_long_inc(&tunnel->stats.tx_errors);
atomic_long_inc(&session->stats.tx_errors);
}
-
- return 0;
}
/* If caller requires the skb to have a ppp header, the header must be
OpenPOWER on IntegriCloud