Remove unreachable code from ether_ifdetach, it has been marked that way
for almost 11 years.

Index: net/if_ethersubr.c
===================================================================
RCS file: /home/rzalamena/obsdcvs/src/sys/net/if_ethersubr.c,v
retrieving revision 1.177
diff -u -p -u -r1.177 if_ethersubr.c
--- net/if_ethersubr.c  6 Nov 2014 14:28:47 -0000       1.177
+++ net/if_ethersubr.c  11 Nov 2014 12:17:13 -0000
@@ -810,11 +810,6 @@ ether_ifdetach(struct ifnet *ifp)
                LIST_REMOVE(enm, enm_list);
                free(enm, M_IFMADDR, 0);
        }
-
-#if 0
-       /* moved to if_detach() */
-       if_free_sadl(ifp);
-#endif
 }
 
 #if 0

Reply via email to