Author: glebius
Date: Fri Mar 22 20:44:16 2013
New Revision: 248621
URL: http://svnweb.freebsd.org/changeset/base/248621

Log:
  Remove __FreeBSD_version ifdefs.

Modified:
  head/sys/net/if_arcsubr.c
  head/sys/net/if_lagg.c
  head/sys/net/if_lagg.h

Modified: head/sys/net/if_arcsubr.c
==============================================================================
--- head/sys/net/if_arcsubr.c   Fri Mar 22 20:12:25 2013        (r248620)
+++ head/sys/net/if_arcsubr.c   Fri Mar 22 20:44:16 2013        (r248621)
@@ -638,11 +638,7 @@ arc_ifattach(struct ifnet *ifp, u_int8_t
        ifp->if_resolvemulti = arc_resolvemulti;
        if (ifp->if_baudrate == 0)
                ifp->if_baudrate = 2500000;
-#if __FreeBSD_version < 500000
-       ifa = ifnet_addrs[ifp->if_index - 1];
-#else
        ifa = ifp->if_addr;
-#endif
        KASSERT(ifa != NULL, ("%s: no lladdr!\n", __func__));
        sdl = (struct sockaddr_dl *)ifa->ifa_addr;
        sdl->sdl_type = IFT_ARCNET;

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c      Fri Mar 22 20:12:25 2013        (r248620)
+++ head/sys/net/if_lagg.c      Fri Mar 22 20:44:16 2013        (r248621)
@@ -219,7 +219,6 @@ static moduledata_t lagg_mod = {
 DECLARE_MODULE(if_lagg, lagg_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
 MODULE_VERSION(if_lagg, 1);
 
-#if __FreeBSD_version >= 800000
 /*
  * This routine is run via an vlan
  * config EVENT
@@ -261,7 +260,6 @@ lagg_unregister_vlan(void *arg, struct i
         }
         LAGG_RUNLOCK(sc);
 }
-#endif
 
 static int
 lagg_clone_create(struct if_clone *ifc, int unit, caddr_t params)
@@ -330,12 +328,10 @@ lagg_clone_create(struct if_clone *ifc, 
         */
        ether_ifattach(ifp, eaddr);
 
-#if __FreeBSD_version >= 800000
        sc->vlan_attach = EVENTHANDLER_REGISTER(vlan_config,
                lagg_register_vlan, sc, EVENTHANDLER_PRI_FIRST);
        sc->vlan_detach = EVENTHANDLER_REGISTER(vlan_unconfig,
                lagg_unregister_vlan, sc, EVENTHANDLER_PRI_FIRST);
-#endif
 
        /* Insert into the global list of laggs */
        mtx_lock(&lagg_list_mtx);
@@ -356,10 +352,8 @@ lagg_clone_destroy(struct ifnet *ifp)
        lagg_stop(sc);
        ifp->if_flags &= ~IFF_UP;
 
-#if __FreeBSD_version >= 800000
        EVENTHANDLER_DEREGISTER(vlan_config, sc->vlan_attach);
        EVENTHANDLER_DEREGISTER(vlan_unconfig, sc->vlan_detach);
-#endif
 
        /* Shutdown and remove lagg ports */
        while ((lp = SLIST_FIRST(&sc->sc_ports)) != NULL)

Modified: head/sys/net/if_lagg.h
==============================================================================
--- head/sys/net/if_lagg.h      Fri Mar 22 20:12:25 2013        (r248620)
+++ head/sys/net/if_lagg.h      Fri Mar 22 20:44:16 2013        (r248621)
@@ -215,10 +215,8 @@ struct lagg_softc {
        void    (*sc_lladdr)(struct lagg_softc *);
        void    (*sc_req)(struct lagg_softc *, caddr_t);
        void    (*sc_portreq)(struct lagg_port *, caddr_t);
-#if __FreeBSD_version >= 800000
        eventhandler_tag vlan_attach;
        eventhandler_tag vlan_detach;
-#endif
        struct sysctl_ctx_list          ctx;            /* sysctl variables */
        int                             use_flowid;     /* use M_FLOWID */
 };
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to