Skip to content

Commit

Permalink
[media] media: platform: ti-vpe: call of_node_put on non-null pointer
Browse files Browse the repository at this point in the history
It should call of_node_put on non-null poiner.

Cc: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Acked-by: Benoit Parrot <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Peter Chen authored and mchehab committed Nov 18, 2016
1 parent c9205e1 commit b68002d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/platform/ti-vpe/cal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b68002d

Please sign in to comment.