]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: remove ->ref() and ->deref()
authorGuillaume Nault <g.nault@alphalink.fr>
Tue, 31 Oct 2017 16:36:42 +0000 (17:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 01:57:24 +0000 (10:57 +0900)
commitb1b7e8b41acebead79654a156c7d286f84722954
tree6bc724bdea1a3e2e15a25a996a20596b85803c6e
parentea12dc4787e5fe5ccd5d341ce5eabc1d2118ce0d
l2tp: remove ->ref() and ->deref()

The ->ref() and ->deref() callbacks are unused since PPP stopped using
them in 6b56f7924ac4 ("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>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h
net/l2tp/l2tp_debugfs.c
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c
net/l2tp/l2tp_netlink.c
net/l2tp/l2tp_ppp.c