Module Name: src Committed By: macallan Date: Tue Sep 2 23:26:20 UTC 2014
Modified Files: src/sys/external/bsd/dwc2: dwc2.c Log Message: dwc2_hubd appears to be unused so #if 0 it in order to appease clang To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/external/bsd/dwc2/dwc2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/dwc2/dwc2.c diff -u src/sys/external/bsd/dwc2/dwc2.c:1.31 src/sys/external/bsd/dwc2/dwc2.c:1.32 --- src/sys/external/bsd/dwc2/dwc2.c:1.31 Tue Aug 5 10:33:46 2014 +++ src/sys/external/bsd/dwc2/dwc2.c Tue Sep 2 23:26:20 2014 @@ -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 @@ Static const struct dwc2_config_desc dwc }; #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 @@ Static const usb_hub_descriptor_t dwc2_h .bHubContrCurrent = 0, .DeviceRemovable = {0}, /* port is removable */ }; +#endif Static usbd_status dwc2_root_ctrl_transfer(usbd_xfer_handle xfer)