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

Configure Feed

Select the types of activity you want to include in your feed.

media: uvcvideo: Add missing curly braces

The uvc_meta_v4l2_try_format() function is missing curly braces on an
outer for loop statement to comply with the driver coding style. Add
them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Laurent Pinchart and committed by
Hans Verkuil
50c320a5 1dcfbdb3

+2 -1
+2 -1
drivers/media/usb/uvc/uvc_metadata.c
··· 67 67 if (format->type != vfh->vdev->queue->type) 68 68 return -EINVAL; 69 69 70 - for (unsigned int i = 0; i < dev->nmeta_formats; i++) 70 + for (unsigned int i = 0; i < dev->nmeta_formats; i++) { 71 71 if (dev->meta_formats[i] == fmt->dataformat) { 72 72 fmeta = fmt->dataformat; 73 73 break; 74 74 } 75 + } 75 76 76 77 memset(fmt, 0, sizeof(*fmt)); 77 78