From 33863b8b964fcbe877d83bbcfbcdbf207fe6a31f Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Wed, 26 Jul 2017 11:38:31 +0100 Subject: [PATCH] Fix warning --- brick/kernel/f_mass_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brick/kernel/f_mass_storage.c b/brick/kernel/f_mass_storage.c index 86503405..8e31efe6 100644 --- a/brick/kernel/f_mass_storage.c +++ b/brick/kernel/f_mass_storage.c @@ -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);