提交 336d30ed 编写于 作者: H Hans Verkuil 提交者: 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: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 eb9678c4
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册