]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: davinci: remove unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Mar 2022 07:51:48 +0000 (08:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:18 +0000 (11:02 +0200)
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>
drivers/media/platform/ti/davinci/vpif_display.c

index 4b7c896ad349c6da190c0f73636ee28bd4057704..5d524acc995d09fde64492849badf632bf9d0ff7 100644 (file)
@@ -1284,8 +1284,7 @@ static __init int vpif_probe(struct platform_device *pdev)
                        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();
        if (err)