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:
dim 2014-02-16 12:41:57 +00:00
parent de873bde87
commit affef832fe

View File

@ -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;