Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/dwc2 dwc2_hubd appears to be unused so #if ...



details:   https://anonhg.NetBSD.org/src/rev/937e2495d880
branches:  trunk
changeset: 802108:937e2495d880
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Sep 02 23:26:20 2014 +0000

description:
dwc2_hubd appears to be unused so #if 0 it in order to appease clang

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 021b79a69fc7 -r 937e2495d880 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Tue Sep 02 21:46:35 2014 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Tue Sep 02 23:26:20 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.31 2014/08/05 10:33:46 skrll Exp $  */
+/*     $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.31 2014/08/05 10:33:46 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $");
 
 #include "opt_usb.h"
 
@@ -667,6 +667,8 @@
 };
 
 #define        HSETW(ptr, val) ptr = { (uint8_t)(val), (uint8_t)((val) >> 8) }
+#if 0
+/* appears to be unused */
 Static const usb_hub_descriptor_t dwc2_hubd = {
        .bDescLength = USB_HUB_DESCRIPTOR_SIZE,
        .bDescriptorType = UDESC_HUB,
@@ -676,6 +678,7 @@
        .bHubContrCurrent = 0,
        .DeviceRemovable = {0},         /* port is removable */
 };
+#endif
 
 Static usbd_status
 dwc2_root_ctrl_transfer(usbd_xfer_handle xfer)



Home | Main Index | Thread Index | Old Index