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_rsu.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_rsu.c')
| -rw-r--r-- | sys/dev/usb/if_rsu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/if_rsu.c b/sys/dev/usb/if_rsu.c index 5d62c85c879..cb2adf71c63 100644 --- a/sys/dev/usb/if_rsu.c +++ b/sys/dev/usb/if_rsu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rsu.c,v 1.9 2010/12/31 20:50:14 damien Exp $ */ +/* $OpenBSD: if_rsu.c,v 1.10 2011/01/25 20:03:35 jakemsr Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -332,8 +332,6 @@ rsu_attach(struct device *parent, struct device *self, void *aux) sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); sc->sc_txtap.wt_ihdr.it_present = htole32(RSU_TX_RADIOTAP_PRESENT); #endif - - usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, &sc->sc_dev); } int @@ -362,7 +360,6 @@ rsu_detach(struct device *self, int flags) rsu_free_rx_list(sc); splx(s); - usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, &sc->sc_dev); return (0); } |
