Commit 336d30ed authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent eb9678c4
...@@ -232,7 +232,7 @@ static int firmware_download(struct usb_device *udev) ...@@ -232,7 +232,7 @@ static int firmware_download(struct usb_device *udev)
goto out; 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); log("\t\t download size : %d", (int)max_packet_size);
for (offset = 0; offset < fwlength; offset += max_packet_size) { for (offset = 0; offset < fwlength; offset += max_packet_size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment