vr_init_locked() will stop and reset the controller. Remove

unnecessary vr_stop()/vr_reset() calls.
This commit is contained in:
yongari 2010-08-24 18:44:12 +00:00
parent 25f4531fc3
commit 5b02e68240

View File

@ -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);