Commit 45602f71 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: uvcvideo: Fix smatch warning

drivers/media/usb/uvc/uvc_video.c: drivers/media/usb/uvc/uvc_video.c:1893 uvc_video_start_transfer() warn: argument 2 to %u specifier is cast from pointer
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: default avatarKieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b8726aea
...@@ -620,8 +620,10 @@ struct uvc_streaming { ...@@ -620,8 +620,10 @@ struct uvc_streaming {
(uvc_urb) < &(uvc_streaming)->uvc_urb[UVC_URBS]; \ (uvc_urb) < &(uvc_streaming)->uvc_urb[UVC_URBS]; \
++(uvc_urb)) ++(uvc_urb))
#define uvc_urb_index(uvc_urb) \ static inline u32 uvc_urb_index(const struct uvc_urb *uvc_urb)
(unsigned int)((uvc_urb) - (&(uvc_urb)->stream->uvc_urb[0])) {
return uvc_urb - &uvc_urb->stream->uvc_urb[0];
}
struct uvc_device_info { struct uvc_device_info {
u32 quirks; u32 quirks;
......
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