summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_aue.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/if_aue.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/if_aue.c')
-rw-r--r--sys/dev/usb/if_aue.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index 8ad72d44e0f..576e9618c9b 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aue.c,v 1.78 2010/09/22 14:38:52 yuo Exp $ */
+/* $OpenBSD: if_aue.c,v 1.79 2010/09/24 08:33:58 yuo Exp $ */
/* $NetBSD: if_aue.c,v 1.82 2003/03/05 17:37:36 shiba Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -849,14 +849,12 @@ aue_detach(struct device *self, int flags)
DPRINTFN(2,("%s: %s: enter\n", sc->aue_dev.dv_xname, __func__));
- if (!sc->aue_attached) {
- /* Detached before attached finished, so just bail out. */
+ /* Detached before attached finished, so just bail out. */
+ if (!sc->aue_attached)
return (0);
- }
timeout_del(&sc->aue_stat_ch);
- sc->aue_dying = 1;
/*
* Remove any pending tasks. They cannot be executing because they run
* in the same thread as detach.