mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 01:30:43 +00:00
In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors. Reviewed by: hselasky MFC after: 3 days
This commit is contained in:
parent
de873bde87
commit
affef832fe
@ -3776,6 +3776,13 @@ tr_handle_get_descriptor:
|
||||
len = sizeof(musbotg_devd);
|
||||
ptr = (const void *)&musbotg_devd;
|
||||
goto tr_valid;
|
||||
case UDESC_DEVICE_QUALIFIER:
|
||||
if (value & 0xff) {
|
||||
goto tr_stalled;
|
||||
}
|
||||
len = sizeof(musbotg_odevd);
|
||||
ptr = (const void *)&musbotg_odevd;
|
||||
goto tr_valid;
|
||||
case UDESC_CONFIG:
|
||||
if (value & 0xff) {
|
||||
goto tr_stalled;
|
||||
|
Loading…
Reference in New Issue
Block a user