diff options
author | dim <dim@FreeBSD.org> | 2014-02-24 20:29:39 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-24 20:29:39 +0000 |
commit | 41269f347e424a7409ae651735c26436debf0cb3 (patch) | |
tree | 0964b9ba97700f616d91596ff30ccc44ba26b585 /sys/dev/usb/controller/uss820dci.c | |
parent | 1f967fac12f6a85608ed93c1955fd5d5b041e65a (diff) | |
download | FreeBSD-src-41269f347e424a7409ae651735c26436debf0cb3.zip FreeBSD-src-41269f347e424a7409ae651735c26436debf0cb3.tar.gz |
MFC r262125:
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
Diffstat (limited to 'sys/dev/usb/controller/uss820dci.c')
-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 6750f32..42ef83d 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; |