From: Hans Verkuil Date: Fri, 4 Oct 2013 14:01:50 +0000 (-0300) Subject: [media] tlg2300: fix sparse warning X-Git-Tag: firefly_0821_release~176^2~3573^2~1258 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=336d30ed131bd0b135577ef5c263fe40d2e5d8d3;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/tlg2300/pd-main.c b/drivers/media/usb/tlg2300/pd-main.c index 95f94e5aa66d..3316caa4733b 100644 --- a/drivers/media/usb/tlg2300/pd-main.c +++ b/drivers/media/usb/tlg2300/pd-main.c @@ -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) {