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)
commitc3b92dd49094397e7d3893a666adf2103958399f
tree25d81946df9aabb60ee6e827c6b4590703c6dec0
parent426988ee84c1d03cd5e158b4a360e01459709e95
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