summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/utwitch.c
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2011-01-25 20:03:35 +0000
committerjakemsr <jakemsr@openbsd.org>2011-01-25 20:03:35 +0000
commit0036ea2d1806ab014533b49d25d9fbdde380400e (patch)
treeb9ab38f34f0a65c8eaea6640215a6a79c0d12cba /sys/dev/usb/utwitch.c
parentDon't ignore copyout() return value in sys_thrsleep(). (diff)
downloadwireguard-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/utwitch.c')
-rw-r--r--sys/dev/usb/utwitch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/utwitch.c b/sys/dev/usb/utwitch.c
index 4947f31d6ed..99e4f8fcaeb 100644
--- a/sys/dev/usb/utwitch.c
+++ b/sys/dev/usb/utwitch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utwitch.c,v 1.2 2010/12/19 21:32:58 jasper Exp $ */
+/* $OpenBSD: utwitch.c,v 1.3 2011/01/25 20:03:36 jakemsr Exp $ */
/*
* Copyright (c) 2010 Yojiro UO <yuo@nui.org>
@@ -154,8 +154,6 @@ utwitch_attach(struct device *parent, struct device *self, void *aux)
}
sc->sc_ibuf = malloc(sc->sc_ilen, M_USBDEV, M_WAITOK);
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- &sc->sc_hdev.sc_dev);
printf("\n");
@@ -208,9 +206,6 @@ utwitch_detach(struct device *self, int flags)
sc->sc_ibuf = NULL;
}
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- &sc->sc_hdev.sc_dev);
-
return (rv);
}