Fix warning

This commit is contained in:
Michal Moskal 2017-07-26 11:38:31 +01:00
parent b167d4f9df
commit 33863b8b96

View File

@ -615,7 +615,7 @@ static int fsg_setup(struct usb_function *f,
*(u8 *) req->buf = fsg->common->nluns - 1;
/* Respond with data/status */
req->length = min(1, w_length);
req->length = min((u16)1, w_length);
fsg->common->ep0req_name =
ctrl->bRequestType & USB_DIR_IN ? "ep0-in" : "ep0-out";
return ep0_queue(fsg->common);