summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorYojiro Uo <yuo@cvs.openbsd.org>2010-09-23 16:58:29 +0000
committerYojiro Uo <yuo@cvs.openbsd.org>2010-09-23 16:58:29 +0000
commite961d2700ff0c474d581febaae964b0924244cf6 (patch)
tree2cb65db7321db09671b0cf04aea52862ea472cc3 /sys/dev/usb/if_axe.c
parent6866f56672456f72b87687f9c41628c5f78cd947 (diff)
remove dying flag in the detach() function.
the device driver which has DEACTIVATE processing seems to no need to set dying flag in the detach() function because the flag will be set in the DEACTIVATE process before detach(). ok jsg@, ok for experiment deraadt@
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r--sys/dev/usb/if_axe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index 7b2fe011e43..b9b44cc9445 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.97 2010/09/21 08:02:49 jsg Exp $ */
+/* $OpenBSD: if_axe.c,v 1.98 2010/09/23 16:58:28 yuo Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org>
@@ -832,8 +832,6 @@ axe_detach(struct device *self, int flags)
timeout_del(&sc->axe_stat_ch);
- sc->axe_dying = 1;
-
if (sc->axe_ep[AXE_ENDPT_TX] != NULL)
usbd_abort_pipe(sc->axe_ep[AXE_ENDPT_TX]);
if (sc->axe_ep[AXE_ENDPT_RX] != NULL)