Skip to content

Commit

Permalink
l2tp: remove pppol2tp_session_close()
Browse files Browse the repository at this point in the history
l2tp_core.c verifies that ->session_close() is defined before calling
it. There's no need for a stub.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Guillaume Nault authored and David S. Miller committed Jun 26, 2018
1 parent 1d7229d commit 877375e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/l2tp/l2tp_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,6 @@ static void pppol2tp_put_sk(struct rcu_head *head)
sock_put(ps->__sk);
}

/* Called by l2tp_core when a session socket is being closed.
*/
static void pppol2tp_session_close(struct l2tp_session *session)
{
}

/* Really kill the session socket. (Called from sock_put() if
* refcnt == 0.)
*/
Expand Down Expand Up @@ -573,7 +567,6 @@ static void pppol2tp_session_init(struct l2tp_session *session)
struct dst_entry *dst;

session->recv_skb = pppol2tp_recv;
session->session_close = pppol2tp_session_close;
#if IS_ENABLED(CONFIG_L2TP_DEBUGFS)
session->show = pppol2tp_show;
#endif
Expand Down

0 comments on commit 877375e

Please sign in to comment.