Re: [PATCH] media: tegra-video: tegra210: remove redundant NULL check in dequeue_buf_done
From: Dan Carpenter
Date: Mon Apr 13 2026 - 04:13:15 EST
On Sun, Apr 12, 2026 at 05:24:16PM +0000, Hungyu Lin wrote:
> list_first_entry() does not returns NULL when the list is known to be
> non-empty. The NULL check before list_del_init() is therefore
> redundant.
>
> Remove the unnecessary check.
>
> Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
> ---
Thanks!
Reviewed-by: Dan Carpenter <error27@xxxxxxxxx>
regards,
dan carpenter