Message ID | 89e7ed8527882bef87734af998b83b4f4912b790.1633442131.git.rob@robgreener.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | usb: core: config: fix all checkpatch.pl warnings | expand |
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index 52aab1462787..5de26d64a00b 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c @@ -619,7 +619,7 @@ static int usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_descriptor_header *header; int retval; u8 inums[USB_MAXINTERFACES], nalts[USB_MAXINTERFACES]; - unsigned iad_num = 0; + unsigned int iad_num = 0; memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); nintf = nintf_orig = config->desc.bNumInterfaces;
Fix the following checkpatch warning: core/config.c:622: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Robert Greener <rob@robgreener.com> --- drivers/usb/core/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)