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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -376,7 +376,6 @@ static struct vdoa_data *coda_get_vdoa_data(void)
		vdoa_data = ERR_PTR(-EPROBE_DEFER);

out:
	if (vdoa_node)
	of_node_put(vdoa_node);

	return vdoa_data;