mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 06:38:26 -05:00
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>
This commit is contained in:
committed by
Hans Verkuil
parent
1dcfbdb361
commit
50c320a5f7
@@ -67,11 +67,12 @@ static int uvc_meta_v4l2_try_format(struct file *file, void *priv,
|
||||
if (format->type != vfh->vdev->queue->type)
|
||||
return -EINVAL;
|
||||
|
||||
for (unsigned int i = 0; i < dev->nmeta_formats; i++)
|
||||
for (unsigned int i = 0; i < dev->nmeta_formats; i++) {
|
||||
if (dev->meta_formats[i] == fmt->dataformat) {
|
||||
fmeta = fmt->dataformat;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
memset(fmt, 0, sizeof(*fmt));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user