diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-10-31 17:36:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 02:57:24 +0100 |
commit | a4346210c4e092de50594b728300766121a3b00d (patch) | |
tree | 6bc724bdea1a3e2e15a25a996a20596b85803c6e /net/l2tp/l2tp_ip6.c | |
parent | net: filter: remove unused variable and fix warning (diff) | |
download | linux-a4346210c4e092de50594b728300766121a3b00d.tar.xz linux-a4346210c4e092de50594b728300766121a3b00d.zip |
l2tp: remove ->ref() and ->deref()
The ->ref() and ->deref() callbacks are unused since PPP stopped using
them in ee40fb2e1eb5 ("l2tp: protect sock pointer of struct pppol2tp_session with RCU").
We can thus remove them from struct l2tp_session and drop the do_ref
parameter of l2tp_session_get*().
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_ip6.c')
-rw-r--r-- | net/l2tp/l2tp_ip6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/l2tp/l2tp_ip6.c b/net/l2tp/l2tp_ip6.c index 88b397c30d86..59ebb6e4f735 100644 --- a/net/l2tp/l2tp_ip6.c +++ b/net/l2tp/l2tp_ip6.c @@ -156,7 +156,7 @@ static int l2tp_ip6_recv(struct sk_buff *skb) } /* Ok, this is a data packet. Lookup the session. */ - session = l2tp_session_get(net, NULL, session_id, true); + session = l2tp_session_get(net, NULL, session_id); if (!session) goto discard; @@ -219,8 +219,6 @@ pass_up: return sk_receive_skb(sk, skb, 1); discard_sess: - if (session->deref) - session->deref(session); l2tp_session_dec_refcount(session); goto discard; |