Re: [PATCH] staging: vc04_services: Delete unnecessary NULL check

From: Stefan Wahren
Date: Wed Apr 24 2024 - 11:18:15 EST


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@xxxxxxxxxx>
Reviewed-by: Stefan Wahren <wahrenst@xxxxxxx>

Thanks