Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[linux-2.6-microblaze.git] / net / batman-adv / hard-interface.c
index fa06b51..dad9964 100644 (file)
@@ -599,7 +599,7 @@ out:
        /* report to the other components the maximum amount of bytes that
         * batman-adv can send over the wire (without considering the payload
         * overhead). For example, this value is used by TT to compute the
-        * maximum local table table size
+        * maximum local table size
         */
        atomic_set(&bat_priv->packet_size_max, min_mtu);
 
@@ -976,23 +976,6 @@ static void batadv_hardif_remove_interface(struct batadv_hard_iface *hard_iface)
        batadv_hardif_put(hard_iface);
 }
 
-/**
- * batadv_hardif_remove_interfaces() - Remove all hard interfaces
- */
-void batadv_hardif_remove_interfaces(void)
-{
-       struct batadv_hard_iface *hard_iface, *hard_iface_tmp;
-
-       rtnl_lock();
-       list_for_each_entry_safe(hard_iface, hard_iface_tmp,
-                                &batadv_hardif_list, list) {
-               list_del_rcu(&hard_iface->list);
-               batadv_hardif_generation++;
-               batadv_hardif_remove_interface(hard_iface);
-       }
-       rtnl_unlock();
-}
-
 /**
  * batadv_hard_if_event_softif() - Handle events for soft interfaces
  * @event: NETDEV_* event to handle