[PATCH] staging: media: meson: vdec: use min() for comparison and assignment

Neil Armstrong neil.armstrong at linaro.org
Tue Nov 8 00:00:02 PST 2022


On 07/11/2022 20:11, Deepak R Varma wrote:
> Use of standard min() helper macro is preferred over using ternary
> operator for logical evaluation and value assignment. This issue is
> identified by coccicheck using the minmax.cocci file.
> 
> Signed-off-by: Deepak R Varma <drv at mailo.com>
> ---
>   drivers/staging/media/meson/vdec/codec_vp9.c | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)

<snip>

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>




More information about the linux-amlogic mailing list