summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-11-11 10:09:40 +0000
committermpi <mpi@openbsd.org>2013-11-11 10:09:40 +0000
commit087174e93cb5adacdd7b64a692f15662eddd77ee (patch)
treef730a6e0abd84762683ac6a7879f68fe1bfecfe9
parentClean-up the activate routines from the uoak*(4) drivers. (diff)
downloadwireguard-openbsd-087174e93cb5adacdd7b64a692f15662eddd77ee.tar.xz
wireguard-openbsd-087174e93cb5adacdd7b64a692f15662eddd77ee.zip
Kill commented out code dealing with a non existent sc_dying variable.
-rw-r--r--sys/dev/usb/if_cdcef.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/usb/if_cdcef.c b/sys/dev/usb/if_cdcef.c
index 74434d102de..9a691a34960 100644
--- a/sys/dev/usb/if_cdcef.c
+++ b/sys/dev/usb/if_cdcef.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cdcef.c,v 1.30 2013/10/29 10:01:20 mpi Exp $ */
+/* $OpenBSD: if_cdcef.c,v 1.31 2013/11/11 10:09:40 mpi Exp $ */
/*
* Copyright (c) 2007 Dale Rahn <drahn@openbsd.org>
@@ -384,8 +384,6 @@ cdcef_rxeof(struct usbf_xfer *xfer, void *priv,
if (sc->sc_rxeof_errors++ > 10) {
printf("%s: too many errors, disabling\n",
DEVNAME(sc));
- /* sc->sc_dying = 1; */
- // return;
}
goto done;
}
@@ -515,11 +513,6 @@ cdcef_watchdog(struct ifnet *ifp)
struct cdcef_softc *sc = ifp->if_softc;
int s;
-#if 0
- if (sc->sc_dying)
- return;
-#endif
-
ifp->if_oerrors++;
printf("%s: watchdog timeout\n", DEVNAME(sc));