Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Sort the matching vendor list alphabetically



details:   https://anonhg.NetBSD.org/src/rev/7f999748f6c3
branches:  trunk
changeset: 825901:7f999748f6c3
user:      khorben <khorben%NetBSD.org@localhost>
date:      Sat Aug 05 12:29:38 2017 +0000

description:
Sort the matching vendor list alphabetically

NFC.

diffstat:

 sys/dev/usb/umodeswitch.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r 8f23a52772f5 -r 7f999748f6c3 sys/dev/usb/umodeswitch.c
--- a/sys/dev/usb/umodeswitch.c Sat Aug 05 11:58:19 2017 +0000
+++ b/sys/dev/usb/umodeswitch.c Sat Aug 05 12:29:38 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umodeswitch.c,v 1.1 2017/05/24 20:23:58 christos Exp $ */
+/*     $NetBSD: umodeswitch.c,v 1.2 2017/08/05 12:29:38 khorben Exp $  */
 
 /*-
  * Copyright (c) 2009, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.1 2017/05/24 20:23:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.2 2017/08/05 12:29:38 khorben Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -401,16 +401,16 @@
                }
                break;
 
+       case USB_VENDOR_QUALCOMM:
+               if (uaa->uaa_product == USB_PRODUCT_QUALCOMM_NTT_DOCOMO_L02C_STORAGE)
+                       return u3g_bulk_scsi_eject(uaa->uaa_device);
+               break;
+
        case USB_VENDOR_SIERRA:
                if (uaa->uaa_product == USB_PRODUCT_SIERRA_INSTALLER)
                        return u3g_sierra_reinit(uaa->uaa_device);
                break;
 
-       case USB_VENDOR_QUALCOMM:
-               if (uaa->uaa_product == USB_PRODUCT_QUALCOMM_NTT_DOCOMO_L02C_STORAGE)
-                       return u3g_bulk_scsi_eject(uaa->uaa_device);
-               break;
-
        case USB_VENDOR_ZTE:
                switch (uaa->uaa_product){
                case USB_PRODUCT_ZTE_INSTALLER:



Home | Main Index | Thread Index | Old Index