mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
staging: atomisp: remove redundant check for client being null
The previous statement checks if client is null, so the null check
when assigning dev is redundant and can be removed.
Detected by CoverityScan, CID#1416555 ("Logically Dead Code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9573878611
commit
b8ff636cd7
@@ -354,7 +354,7 @@ static struct gmin_subdev *gmin_subdev_add(struct v4l2_subdev *subdev)
|
||||
if (!client)
|
||||
return NULL;
|
||||
|
||||
dev = client ? &client->dev : NULL;
|
||||
dev = &client->dev;
|
||||
|
||||
for (i=0; i < MAX_SUBDEVS && gmin_subdevs[i].subdev; i++)
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user