mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 08:04:22 +08:00
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:
parent
8919a25c21
commit
7ec0966ec4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user