Commit 94a426c5 authored by zhong jiang's avatar zhong jiang Committed by Mauro Carvalho Chehab

media: coda: remove redundant null pointer check before of_node_put

of_node_put has taken the null pointer check into account. So it is
safe to remove the duplicated check before of_node_put.
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent a58c3797
...@@ -376,7 +376,6 @@ static struct vdoa_data *coda_get_vdoa_data(void) ...@@ -376,7 +376,6 @@ static struct vdoa_data *coda_get_vdoa_data(void)
vdoa_data = ERR_PTR(-EPROBE_DEFER); vdoa_data = ERR_PTR(-EPROBE_DEFER);
out: out:
if (vdoa_node)
of_node_put(vdoa_node); of_node_put(vdoa_node);
return vdoa_data; return vdoa_data;
......
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