From 8894920ec143a1381e301f7c2e93c9a430320b33 Mon Sep 17 00:00:00 2001 From: Yojiro Uo Date: Fri, 24 Sep 2010 08:34:00 +0000 Subject: remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE. ok deraadt@ --- sys/dev/usb/umbg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/usb/umbg.c') diff --git a/sys/dev/usb/umbg.c b/sys/dev/usb/umbg.c index d88ca94a1e1..e5724f9fe06 100644 --- a/sys/dev/usb/umbg.c +++ b/sys/dev/usb/umbg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umbg.c,v 1.11 2009/11/21 14:30:35 deraadt Exp $ */ +/* $OpenBSD: umbg.c,v 1.12 2010/09/24 08:33:59 yuo Exp $ */ /* * Copyright (c) 2007 Marc Balmer @@ -296,8 +296,6 @@ umbg_detach(struct device *self, int flags) struct umbg_softc *sc = (struct umbg_softc *)self; usbd_status err; - sc->sc_dying = 1; - timeout_del(&sc->sc_to); timeout_del(&sc->sc_it_to); -- cgit v1.2.3