media: v4l2-dev.c: Modified the macro SET_VALID_IOCTL
authorlijian <lijian@yulong.com>
Tue, 25 May 2021 09:41:48 +0000 (11:41 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 12:18:01 +0000 (14:18 +0200)
commit35037eab4acae8c2d01612d906d479f7006a733c
tree300271b2a903a9f6ecb6428353d5f33716af606b
parent80daed70c6dcc79f5ef36b98157062b0f3522732
media: v4l2-dev.c: Modified the macro SET_VALID_IOCTL

Macros starting with if should be enclosed by a do - while loop
to avoid possible if/else logic defects.
So modified the macro SET_VALID_IOCTL with do - while loop.

[hverkuil: checkpatch: add parenthesis around 'ops']

Signed-off-by: lijian <lijian@yulong.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-dev.c