diff options
author | dim <dim@FreeBSD.org> | 2014-02-17 20:08:11 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-17 20:08:11 +0000 |
commit | 8eebbdf6742e26871e60a01bf23be827cbea6cfe (patch) | |
tree | b2e13fc61663e3dd637307228516d55906184dc4 | |
parent | 6bd122754ec43001380aae5810587a411b20813a (diff) | |
download | FreeBSD-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.c | 7 |
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; |