Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/usb Fix another patch mishap from ticket #616



details:   https://anonhg.NetBSD.org/src/rev/8e9cc95ab8ea
branches:  netbsd-9
changeset: 843789:8e9cc95ab8ea
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 21 19:54:55 2020 +0000

description:
Fix another patch mishap from ticket #616

diffstat:

 sys/dev/usb/ums.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 617072173178 -r 8e9cc95ab8ea sys/dev/usb/ums.c
--- a/sys/dev/usb/ums.c Tue Jan 21 18:24:01 2020 +0000
+++ b/sys/dev/usb/ums.c Tue Jan 21 19:54:55 2020 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index