Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b68002db authored by Peter Chen's avatar Peter Chen Committed by Mauro Carvalho Chehab
Browse files

[media] media: platform: ti-vpe: call of_node_put on non-null pointer



It should call of_node_put on non-null poiner.

Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Acked-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent c9205e18
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1745,13 +1745,13 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
	}

cleanup_exit:
	if (!remote_ep)
	if (remote_ep)
		of_node_put(remote_ep);
	if (!sensor_node)
	if (sensor_node)
		of_node_put(sensor_node);
	if (!ep_node)
	if (ep_node)
		of_node_put(ep_node);
	if (!port)
	if (port)
		of_node_put(port);

	return ret;