summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2020-01-21 19:54:55 +0000
committermartin <martin@NetBSD.org>2020-01-21 19:54:55 +0000
commite00feeb6d0fc714fafa512963bad4c0cf1efbfc8 (patch)
tree359fda856a03bef446c161f825342d92fcef7981 /sys/dev
parentf11b14c102f2f25ab636034b2101d0046aa66c86 (diff)
Fix another patch mishap from ticket #616
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ums.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index b4eda6847b0..2cac7cd1f1e 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ums.c,v 1.93.2.2 2020/01/21 15:05:51 martin Exp $ */
+/* $NetBSD: ums.c,v 1.93.2.3 2020/01/21 19:54:55 martin Exp $ */
/*
* Copyright (c) 1998, 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.93.2.2 2020/01/21 15:05:51 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.93.2.3 2020/01/21 19:54:55 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -249,12 +249,6 @@ ums_detach(device_t self, int flags)
if (sc->sc_alwayson)
uhidev_close(&sc->sc_hdev);
- if (sc->sc_alwayson)
- uhidev_close(&sc->sc_hdev);
-
- if (sc->sc_alwayson)
- uhidev_close(&sc->sc_hdev);
-
/* No need to do reference counting of ums, wsmouse has all the goo. */
if (sc->sc_ms.hidms_wsmousedev != NULL)
rv = config_detach(sc->sc_ms.hidms_wsmousedev, flags);