projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb9678c
)
[media] tlg2300: fix sparse warning
author
Hans Verkuil
<hans.verkuil@cisco.com>
Fri, 4 Oct 2013 14:01:50 +0000
(11:01 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Tue, 15 Oct 2013 16:00:38 +0000
(13:00 -0300)
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>
drivers/media/usb/tlg2300/pd-main.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/tlg2300/pd-main.c
b/drivers/media/usb/tlg2300/pd-main.c
index 95f94e5aa66d2a14910bc0b81eec3bf595534f02..3316caa4733b6a48951f14f8e3e483188e325eba 100644
(file)
--- 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) {