From cd7412a1a41573204c7f2a84e4467e34e489145c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 25 Nov 2009 12:42:29 +0000 Subject: Do not call vr_stop() and vr_reset() before calling vr_init(), because the latter does that itself. ok claudio --- sys/dev/pci/if_vr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 234ee7b1220..c53c735b8fb 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.100 2009/08/13 14:24:47 jasper Exp $ */ +/* $OpenBSD: if_vr.c,v 1.101 2009/11/25 12:42:28 deraadt Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1019,8 +1019,6 @@ vr_tick(void *xsc) s = splnet(); if (sc->vr_flags & VR_F_RESTART) { printf("%s: restarting\n", sc->sc_dev.dv_xname); - vr_stop(sc); - vr_reset(sc); vr_init(sc); sc->vr_flags &= ~VR_F_RESTART; } @@ -1467,9 +1465,6 @@ vr_watchdog(struct ifnet *ifp) ifp->if_oerrors++; printf("%s: watchdog timeout\n", sc->sc_dev.dv_xname); - - vr_stop(sc); - vr_reset(sc); vr_init(sc); if (!IFQ_IS_EMPTY(&ifp->if_snd)) -- cgit v1.2.3