media: davinci: remove unnecessary NULL check

We verified that "vpif_obj.sd[i]" is non-NULL on the previous line so
no need to check here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Dan Carpenter 2022-03-17 08:51:48 +01:00 committed by Mauro Carvalho Chehab
parent 8919a25c21
commit 7ec0966ec4

View file

@ -1284,8 +1284,7 @@ static __init int vpif_probe(struct platform_device *pdev)
goto probe_subdev_out; goto probe_subdev_out;
} }
if (vpif_obj.sd[i]) vpif_obj.sd[i]->grp_id = 1 << i;
vpif_obj.sd[i]->grp_id = 1 << i;
} }
err = vpif_probe_complete(); err = vpif_probe_complete();
if (err) if (err)