Commit c64ee347 authored by Franck Jullien's avatar Franck Jullien Committed by Mauro Carvalho Chehab

[media] xilinx-vipp: remove unnecessary of_node_put

of_graph_get_next_endpoint(node, ep) decrements refcount on
ep. When next==NULL we break and refcount on ep is decremented
again.
Signed-off-by: default avatarFranck Jullien <franck.jullien@odyssee-systemes.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent bf244f66
...@@ -351,19 +351,15 @@ static int xvip_graph_parse_one(struct xvip_composite_device *xdev, ...@@ -351,19 +351,15 @@ static int xvip_graph_parse_one(struct xvip_composite_device *xdev,
struct xvip_graph_entity *entity; struct xvip_graph_entity *entity;
struct device_node *remote; struct device_node *remote;
struct device_node *ep = NULL; struct device_node *ep = NULL;
struct device_node *next;
int ret = 0; int ret = 0;
dev_dbg(xdev->dev, "parsing node %s\n", node->full_name); dev_dbg(xdev->dev, "parsing node %s\n", node->full_name);
while (1) { while (1) {
next = of_graph_get_next_endpoint(node, ep); ep = of_graph_get_next_endpoint(node, ep);
if (next == NULL) if (ep == NULL)
break; break;
of_node_put(ep);
ep = next;
dev_dbg(xdev->dev, "handling endpoint %s\n", ep->full_name); dev_dbg(xdev->dev, "handling endpoint %s\n", ep->full_name);
remote = of_graph_get_remote_port_parent(ep); remote = of_graph_get_remote_port_parent(ep);
......
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