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/bc9cc03b0f41
branches:  netbsd-9
changeset: 1001407:bc9cc03b0f41
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 aa7737ed9b48 -r bc9cc03b0f41 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