summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-17 20:08:11 +0000
committerdim <dim@FreeBSD.org>2014-02-17 20:08:11 +0000
commit8eebbdf6742e26871e60a01bf23be827cbea6cfe (patch)
treeb2e13fc61663e3dd637307228516d55906184dc4
parent6bd122754ec43001380aae5810587a411b20813a (diff)
downloadFreeBSD-src-8eebbdf6742e26871e60a01bf23be827cbea6cfe.zip
FreeBSD-src-8eebbdf6742e26871e60a01bf23be827cbea6cfe.tar.gz
In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
about uss820dci_odevd being unused, by adding it to the part that handles getting descriptors. Reported by: loos Reviewed by: hselasky MFC after: 3 days
-rw-r--r--sys/dev/usb/controller/uss820dci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb/controller/uss820dci.c b/sys/dev/usb/controller/uss820dci.c
index 1a38abe..ba77711 100644
--- a/sys/dev/usb/controller/uss820dci.c
+++ b/sys/dev/usb/controller/uss820dci.c
@@ -2005,6 +2005,13 @@ tr_handle_get_descriptor:
len = sizeof(uss820dci_devd);
ptr = (const void *)&uss820dci_devd;
goto tr_valid;
+ case UDESC_DEVICE_QUALIFIER:
+ if (value & 0xff) {
+ goto tr_stalled;
+ }
+ len = sizeof(uss820dci_odevd);
+ ptr = (const void *)&uss820dci_odevd;
+ goto tr_valid;
case UDESC_CONFIG:
if (value & 0xff) {
goto tr_stalled;
OpenPOWER on IntegriCloud