Commit b8ff636c authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95738786
...@@ -354,7 +354,7 @@ static struct gmin_subdev *gmin_subdev_add(struct v4l2_subdev *subdev) ...@@ -354,7 +354,7 @@ static struct gmin_subdev *gmin_subdev_add(struct v4l2_subdev *subdev)
if (!client) if (!client)
return NULL; return NULL;
dev = client ? &client->dev : NULL; dev = &client->dev;
for (i=0; i < MAX_SUBDEVS && gmin_subdevs[i].subdev; i++) for (i=0; i < MAX_SUBDEVS && gmin_subdevs[i].subdev; i++)
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment