summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c
diff options
context:
space:
mode:
authoryuo <yuo@openbsd.org>2010-09-24 08:33:58 +0000
committeryuo <yuo@openbsd.org>2010-09-24 08:33:58 +0000
commit70e15fe76ea3b9239041a07d16318dcfc7a94470 (patch)
tree0016d65f6a9da79cc130e95b39ffa20a1a4f591a /sys/dev/usb/uts.c
parentPrefer -h instead over -L for symlink test. (diff)
downloadwireguard-openbsd-70e15fe76ea3b9239041a07d16318dcfc7a94470.tar.xz
wireguard-openbsd-70e15fe76ea3b9239041a07d16318dcfc7a94470.zip
remove dying flag in detach() function.
The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
Diffstat (limited to 'sys/dev/usb/uts.c')
-rw-r--r--sys/dev/usb/uts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/uts.c b/sys/dev/usb/uts.c
index aaa0312a1e0..12452e4ae12 100644
--- a/sys/dev/usb/uts.c
+++ b/sys/dev/usb/uts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uts.c,v 1.26 2009/12/05 20:39:31 matthieu Exp $ */
+/* $OpenBSD: uts.c,v 1.27 2010/09/24 08:33:59 yuo Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
@@ -241,8 +241,6 @@ uts_detach(struct device *self, int flags)
sc->sc_intr_pipe = NULL;
}
- sc->sc_dying = 1;
-
if (sc->sc_wsmousedev != NULL) {
rv = config_detach(sc->sc_wsmousedev, flags);
sc->sc_wsmousedev = NULL;