summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorYojiro Uo <yuo@cvs.openbsd.org>2010-09-24 08:34:00 +0000
committerYojiro Uo <yuo@cvs.openbsd.org>2010-09-24 08:34:00 +0000
commit8894920ec143a1381e301f7c2e93c9a430320b33 (patch)
tree3ca0a7d7780850ca9a2eccfa99b379f31f38d667 /sys/dev/usb/ugen.c
parent2333fd7ebd3c575940690efef14c44e15abef121 (diff)
remove dying flag in detach() function.
The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index ec32cf2bf9d..457b77cd894 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugen.c,v 1.61 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: ugen.c,v 1.62 2010/09/24 08:33:59 yuo Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -753,7 +753,6 @@ ugen_detach(struct device *self, int flags)
DPRINTF(("ugen_detach: sc=%p flags=%d\n", sc, flags));
- sc->sc_dying = 1;
/* Abort all pipes. Causes processes waiting for transfer to wake. */
for (i = 0; i < USB_MAX_ENDPOINTS; i++) {
for (dir = OUT; dir <= IN; dir++) {