[PATCH] staging: vc04_services: Delete unnecessary NULL check
Stefan Wahren
wahrenst at gmx.net
Wed Apr 24 08:17:40 PDT 2024
Am 24.04.24 um 13:43 schrieb Dan Carpenter:
> The "state" pointer points to an offset in the middle of the "mgmt"
> struct so it can't possibly be NULL. And also we dereferenced it on the
> line before. So this NULL check is pointless. Delete it.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
Reviewed-by: Stefan Wahren <wahrenst at gmx.net>
Thanks
More information about the linux-arm-kernel
mailing list