Since intr has been setup in the last step of vr_attach(), mii_phy_probe()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 12 Oct 2005 10:28:02 +0000 (10:28 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 12 Oct 2005 10:28:02 +0000 (10:28 +0000)
does not need any protection.

sys/dev/netif/vr/if_vr.c

index 0fdf7cf..bafd567 100644 (file)
@@ -30,7 +30,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/pci/if_vr.c,v 1.26.2.13 2003/02/06 04:46:20 silby Exp $
- * $DragonFly: src/sys/dev/netif/vr/if_vr.c,v 1.34 2005/10/11 18:23:17 dillon Exp $
+ * $DragonFly: src/sys/dev/netif/vr/if_vr.c,v 1.35 2005/10/12 10:28:02 sephe Exp $
  */
 
 /*
@@ -783,15 +783,12 @@ vr_attach(device_t dev)
        /*
         * Do MII setup.
         */
-        crit_enter();
        if (mii_phy_probe(dev, &sc->vr_miibus,
            vr_ifmedia_upd, vr_ifmedia_sts)) {
                if_printf(ifp, "MII without any phy!\n");
                error = ENXIO;
-               crit_exit();
                goto fail;
        }
-       crit_exit();
 
        /* Call MI attach routine. */
        ether_ifattach(ifp, eaddr);