staging: vc04_services: Delete unnecessary NULL check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 24 Apr 2024 11:43:28 +0000 (14:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 May 2024 16:41:48 +0000 (18:41 +0200)
commita0e244ec59bdc4caac4b7a105f029fd1af28f0f2
tree0ea25625275b2cf678774ad55704ac2e40bce823
parent62cbabc6fd228e62daff6ec108fae35632e2b692
staging: vc04_services: Delete unnecessary NULL check

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@linaro.org>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/526ec2ff-6277-4d5d-b2d9-63b087a97c7c@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c