diff options
author | Martin Schiller <ms@dev.tdt.de> | 2020-11-26 09:35:57 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-28 04:22:51 +0300 |
commit | 139d6eb149de0cb8726d0d8e722ab8d4ddcc60bb (patch) | |
tree | d089feb486c6240cb6787e58884620fc85c7b72d /net | |
parent | d023b2b9ccc2e7ec14b83aec634b5b51f621ef3a (diff) | |
download | linux-139d6eb149de0cb8726d0d8e722ab8d4ddcc60bb.tar.xz |
net/x25: remove x25_kill_by_device()
Remove obsolete function x25_kill_by_device(). It's not used any more.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/x25/af_x25.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 210829dbda62..9232cdb42ad9 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -200,22 +200,6 @@ static void x25_remove_socket(struct sock *sk) } /* - * 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. */ static int x25_device_event(struct notifier_block *this, unsigned long event, |