]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Drop unused function batadv_hardif_remove_interfaces()
authorSven Eckelmann <sven@narfation.org>
Tue, 7 Jul 2020 20:49:50 +0000 (22:49 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 18 Aug 2020 17:39:53 +0000 (19:39 +0200)
commita1f863c57dea4358d17cf17c5d79564b02d04fce
tree25d81946df9aabb60ee6e827c6b4590703c6dec0
parente4d72a06985aea94f8d5c135171733d870eab938
batman-adv: Drop unused function batadv_hardif_remove_interfaces()

The function batadv_hardif_remove_interfaces was meant to remove all
interfaces which are currently in the list of known (compatible) hardifs
during module unload. But the function unregister_netdevice_notifier is
called in batadv_exit before batadv_hardif_remove_interfaces. This will
trigger NETDEV_UNREGISTER events for all available interfaces and in this
process remove all interfaces from batadv_hardif_list. And
batadv_hardif_remove_interfaces only operated on this (empty) list.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c
net/batman-adv/hard-interface.h
net/batman-adv/main.c