Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Make #if 0 code that sets the protocol mode comp...
details: https://anonhg.NetBSD.org/src/rev/c8acca5bdf63
branches: trunk
changeset: 344980:c8acca5bdf63
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Apr 30 18:40:26 2016 +0000
description:
Make #if 0 code that sets the protocol mode compilable.
diffstat:
sys/dev/usb/uhidev.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 21240d628000 -r c8acca5bdf63 sys/dev/usb/uhidev.c
--- a/sys/dev/usb/uhidev.c Sat Apr 30 15:09:25 2016 +0000
+++ b/sys/dev/usb/uhidev.c Sat Apr 30 18:40:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhidev.c,v 1.66 2016/04/27 19:35:17 jakllsch Exp $ */
+/* $NetBSD: uhidev.c,v 1.67 2016/04/30 18:40:26 jakllsch Exp $ */
/*
* Copyright (c) 2001, 2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.66 2016/04/27 19:35:17 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.67 2016/04/30 18:40:26 jakllsch Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -155,8 +155,7 @@
(void)usbd_set_idle(iface, 0, 0);
#if 0
- qflags = usbd_get_quirks(sc->sc_udev)->uq_flags;
- if ((qflags & UQ_NO_SET_PROTO) == 0 &&
+ if ((usbd_get_quirks(sc->sc_udev)->uq_flags & UQ_NO_SET_PROTO) == 0 &&
id->bInterfaceSubClass != UISUBCLASS_BOOT)
(void)usbd_set_protocol(iface, 1);
#endif
Home |
Main Index |
Thread Index |
Old Index