diff options
author | 2011-01-25 20:03:35 +0000 | |
---|---|---|
committer | 2011-01-25 20:03:35 +0000 | |
commit | 0036ea2d1806ab014533b49d25d9fbdde380400e (patch) | |
tree | b9ab38f34f0a65c8eaea6640215a6a79c0d12cba /sys/dev/usb/if_udav.c | |
parent | Don't ignore copyout() return value in sys_thrsleep(). (diff) | |
download | wireguard-openbsd-0036ea2d1806ab014533b49d25d9fbdde380400e.tar.xz wireguard-openbsd-0036ea2d1806ab014533b49d25d9fbdde380400e.zip |
garbage collect "usb events". without /dev/usb there is no way to access
them from userland, and nothing in the kernel uses them.
ok krw@, miod@
Diffstat (limited to 'sys/dev/usb/if_udav.c')
-rw-r--r-- | sys/dev/usb/if_udav.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index 111ffd30a62..f99a516c113 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.50 2010/12/06 04:41:39 jakemsr Exp $ */ +/* $OpenBSD: if_udav.c,v 1.51 2011/01/25 20:03:35 jakemsr Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -312,8 +312,6 @@ udav_attach(struct device *parent, struct device *self, void *aux) splx(s); - usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, dev, &sc->sc_dev); - return; bad: @@ -367,9 +365,6 @@ udav_detach(struct device *self, int flags) #endif splx(s); - usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, - &sc->sc_dev); - return (0); } |