|
@@ -454,13 +454,11 @@ static void pppol2tp_session_close(struct l2tp_session *session)
|
|
|
|
|
|
BUG_ON(session->magic != L2TP_SESSION_MAGIC);
|
|
|
|
|
|
-
|
|
|
if (sock) {
|
|
|
inet_shutdown(sock, 2);
|
|
|
/* Don't let the session go away before our socket does */
|
|
|
l2tp_session_inc_refcount(session);
|
|
|
}
|
|
|
- return;
|
|
|
}
|
|
|
|
|
|
/* Really kill the session socket. (Called from sock_put() if
|
|
@@ -474,7 +472,6 @@ static void pppol2tp_session_destruct(struct sock *sk)
|
|
|
BUG_ON(session->magic != L2TP_SESSION_MAGIC);
|
|
|
l2tp_session_dec_refcount(session);
|
|
|
}
|
|
|
- return;
|
|
|
}
|
|
|
|
|
|
/* Called when the PPPoX socket (session) is closed.
|