summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/smc/if_smc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/smc/if_smc.c b/sys/dev/smc/if_smc.c
index 9404f56..cece5b7 100644
--- a/sys/dev/smc/if_smc.c
+++ b/sys/dev/smc/if_smc.c
@@ -1237,9 +1237,10 @@ smc_init_locked(struct smc_softc *sc)
{
struct ifnet *ifp;
- ifp = sc->smc_ifp;
-
SMC_ASSERT_LOCKED(sc);
+ ifp = sc->smc_ifp;
+ if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
+ return;
smc_reset(sc);
smc_enable(sc);
OpenPOWER on IntegriCloud