[media] tlg2300: fix sparse warning
drivers/media/usb/tlg2300/pd-main.c:235:25: warning: incorrect type in assignment (different base types) Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
eb9678c4b0
commit
336d30ed13
|
@ -232,7 +232,7 @@ static int firmware_download(struct usb_device *udev)
|
|||
goto out;
|
||||
}
|
||||
|
||||
max_packet_size = udev->ep_out[0x1]->desc.wMaxPacketSize;
|
||||
max_packet_size = le16_to_cpu(udev->ep_out[0x1]->desc.wMaxPacketSize);
|
||||
log("\t\t download size : %d", (int)max_packet_size);
|
||||
|
||||
for (offset = 0; offset < fwlength; offset += max_packet_size) {
|
||||
|
|
Loading…
Reference in New Issue