fix warnings

This commit is contained in:
sakumisu
2022-06-15 22:09:09 +08:00
parent 131ac53ce9
commit e922b589f8
4 changed files with 10 additions and 7 deletions

View File

@@ -78,7 +78,6 @@ static void usbh_msc_devno_free(struct usbh_msc *msc_class)
static int usbh_msc_get_maxlun(struct usbh_msc *msc_class, uint8_t *buffer)
{
struct usb_setup_packet *setup = msc_class->hport->setup;
int ret;
setup->bmRequestType = USB_REQUEST_DIR_IN | USB_REQUEST_CLASS | USB_REQUEST_RECIPIENT_INTERFACE;
setup->bRequest = MSC_REQUEST_GET_MAX_LUN;