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 @@ musbotg_roothub_exec(struct usb_device *udev,
|
||||
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