From e961d2700ff0c474d581febaae964b0924244cf6 Mon Sep 17 00:00:00 2001 From: Yojiro Uo Date: Thu, 23 Sep 2010 16:58:29 +0000 Subject: 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@ --- sys/dev/usb/if_axe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/usb/if_axe.c') 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 @@ -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) -- cgit v1.2.3