summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ums.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/ums.c')
-rw-r--r--sys/dev/usb/ums.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index 72240bf6b575..d3acf92e514a 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -367,7 +367,6 @@ Static int
ums_detach(device_t self)
{
struct ums_softc *sc = device_get_softc(self);
- struct vnode *vp;
if (sc->sc_enabled)
ums_disable(sc);
@@ -377,10 +376,6 @@ ums_detach(device_t self)
free(sc->sc_loc_btn, M_USB);
free(sc->sc_ibuf, M_USB);
- vp = SLIST_FIRST(&sc->dev->si_hlist);
- if (vp)
- VOP_REVOKE(vp, REVOKEALL);
-
/* someone waiting for data */
/*
* XXX If we wakeup the process here, the device will be gone by