Re: [PATCH] media: v4l2-dev.c: Modified the macro SET_VALID_IOCTL
From: Sakari Ailus
Date: Tue May 25 2021 - 11:22:15 EST
On Tue, May 25, 2021 at 05:41:48PM +0800, lijian_8010a29@xxxxxxx wrote:
> From: lijian <lijian@xxxxxxxxxx>
>
> 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.
>
> Signed-off-by: lijian <lijian@xxxxxxxxxx>
Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
--
Sakari Ailus