From 5b02e682403e7e9330dc8a6bd697b2ddd380cbc5 Mon Sep 17 00:00:00 2001 From: yongari Date: Tue, 24 Aug 2010 18:44:12 +0000 Subject: [PATCH] vr_init_locked() will stop and reset the controller. Remove unnecessary vr_stop()/vr_reset() calls. --- sys/dev/vr/if_vr.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 21a74a5dd836..e9359aa0964c 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -1558,8 +1558,6 @@ vr_tick(void *xsc) if ((sc->vr_flags & VR_F_RESTART) != 0) { device_printf(sc->vr_dev, "restarting\n"); sc->vr_stat.num_restart++; - vr_stop(sc); - vr_reset(sc); sc->vr_ifp->if_drv_flags &= ~IFF_DRV_RUNNING; vr_init_locked(sc); sc->vr_flags &= ~VR_F_RESTART; @@ -2299,8 +2297,6 @@ vr_watchdog(struct vr_softc *sc) ifp->if_oerrors++; if_printf(ifp, "watchdog timeout\n"); - vr_stop(sc); - vr_reset(sc); ifp->if_drv_flags &= ~IFF_DRV_RUNNING; vr_init_locked(sc);