mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: usb: gadget: f_mtp: don't use le16 for u8 field
The 'bCount' field is u8. Noticed by this warning: drivers/usb/gadget/function/f_mtp.c:264:3: warning: large integer implicitly truncated to unsigned type [-Woverflow] Change-Id: Ie82dfd1a8986ecd3acf143e41c46822f0d1aca4f Signed-off-by: Brian Norris <briannorris@google.com>
This commit is contained in:
committed by
Dmitry Shmidt
parent
5fb1ae0702
commit
557d80f284
@@ -261,7 +261,7 @@ struct {
|
||||
.dwLength = __constant_cpu_to_le32(sizeof(mtp_ext_config_desc)),
|
||||
.bcdVersion = __constant_cpu_to_le16(0x0100),
|
||||
.wIndex = __constant_cpu_to_le16(4),
|
||||
.bCount = __constant_cpu_to_le16(1),
|
||||
.bCount = 1,
|
||||
},
|
||||
.function = {
|
||||
.bFirstInterfaceNumber = 0,
|
||||
|
||||
Reference in New Issue
Block a user