Skip to content

Commit 50c320a

Browse files
pinchartlHans Verkuil
authored andcommitted
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>
1 parent 1dcfbdb commit 50c320a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/media/usb/uvc/uvc_metadata.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ static int uvc_meta_v4l2_try_format(struct file *file, void *priv,
6767
if (format->type != vfh->vdev->queue->type)
6868
return -EINVAL;
6969

70-
for (unsigned int i = 0; i < dev->nmeta_formats; i++)
70+
for (unsigned int i = 0; i < dev->nmeta_formats; i++) {
7171
if (dev->meta_formats[i] == fmt->dataformat) {
7272
fmeta = fmt->dataformat;
7373
break;
7474
}
75+
}
7576

7677
memset(fmt, 0, sizeof(*fmt));
7778

0 commit comments

Comments
 (0)