Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
336d30ed eb9678c4

+1 -1
+1 -1
drivers/media/usb/tlg2300/pd-main.c
··· 232 232 goto out; 233 233 } 234 234 235 - max_packet_size = udev->ep_out[0x1]->desc.wMaxPacketSize; 235 + max_packet_size = le16_to_cpu(udev->ep_out[0x1]->desc.wMaxPacketSize); 236 236 log("\t\t download size : %d", (int)max_packet_size); 237 237 238 238 for (offset = 0; offset < fwlength; offset += max_packet_size) {