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

[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
...@@ -1745,13 +1745,13 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst) ...@@ -1745,13 +1745,13 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
} }
cleanup_exit: cleanup_exit:
if (!remote_ep) if (remote_ep)
of_node_put(remote_ep); of_node_put(remote_ep);
if (!sensor_node) if (sensor_node)
of_node_put(sensor_node); of_node_put(sensor_node);
if (!ep_node) if (ep_node)
of_node_put(ep_node); of_node_put(ep_node);
if (!port) if (port)
of_node_put(port); of_node_put(port);
return ret; return ret;
......
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