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: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
a58c37978c
commit
94a426c564
|
@ -376,8 +376,7 @@ static struct vdoa_data *coda_get_vdoa_data(void)
|
|||
vdoa_data = ERR_PTR(-EPROBE_DEFER);
|
||||
|
||||
out:
|
||||
if (vdoa_node)
|
||||
of_node_put(vdoa_node);
|
||||
of_node_put(vdoa_node);
|
||||
|
||||
return vdoa_data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue