Commit 139d6eb1 authored by Martin Schiller's avatar Martin Schiller Committed by Jakub Kicinski

net/x25: remove x25_kill_by_device()

Remove obsolete function x25_kill_by_device(). It's not used any more.
Signed-off-by: default avatarMartin Schiller <ms@dev.tdt.de>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d023b2b9
...@@ -199,22 +199,6 @@ static void x25_remove_socket(struct sock *sk) ...@@ -199,22 +199,6 @@ static void x25_remove_socket(struct sock *sk)
write_unlock_bh(&x25_list_lock); write_unlock_bh(&x25_list_lock);
} }
/*
* Kill all bound sockets on a dropped device.
*/
static void x25_kill_by_device(struct net_device *dev)
{
struct sock *s;
write_lock_bh(&x25_list_lock);
sk_for_each(s, &x25_list)
if (x25_sk(s)->neighbour && x25_sk(s)->neighbour->dev == dev)
x25_disconnect(s, ENETUNREACH, 0, 0);
write_unlock_bh(&x25_list_lock);
}
/* /*
* Handle device status changes. * Handle device status changes.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment