Re: [PATCH] bpf, devmap: Remove unnecessary if check in for loop

From: Toke Høiland-Jørgensen
Date: Wed May 29 2024 - 10:24:55 EST


Thorsten Blum <thorsten.blum@xxxxxxxxxx> writes:

> The iterator variable dst cannot be NULL and the if check can be
> removed.
>
> Remove it and fix the following Coccinelle/coccicheck warning reported
> by itnull.cocci:
>
> ERROR: iterator variable bound on line 762 cannot be NULL
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>

Reviewed-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>