aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorFranck Jullien <franck.jullien@odyssee-systemes.fr>2016-03-22 07:43:58 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-05-07 11:45:38 -0300
commitc64ee34712eeeee95de0376f424dd4dc7661d3ed (patch)
tree2d25c7173d885d2bd36c132c43d8f3a76a608feb /drivers/media
parent[media] drivers/media/media-devnode: clear private_data before put_device() (diff)
downloadlinux-dev-c64ee34712eeeee95de0376f424dd4dc7661d3ed.tar.xz
linux-dev-c64ee34712eeeee95de0376f424dd4dc7661d3ed.zip
[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: Franck Jullien <franck.jullien@odyssee-systemes.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/xilinx/xilinx-vipp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c
index e795a4501e8b..feb3b2f1d874 100644
--- a/drivers/media/platform/xilinx/xilinx-vipp.c
+++ b/drivers/media/platform/xilinx/xilinx-vipp.c
@@ -351,19 +351,15 @@ static int xvip_graph_parse_one(struct xvip_composite_device *xdev,
struct xvip_graph_entity *entity;
struct device_node *remote;
struct device_node *ep = NULL;
- struct device_node *next;
int ret = 0;
dev_dbg(xdev->dev, "parsing node %s\n", node->full_name);
while (1) {
- next = of_graph_get_next_endpoint(node, ep);
- if (next == NULL)
+ ep = of_graph_get_next_endpoint(node, ep);
+ if (ep == NULL)
break;
- of_node_put(ep);
- ep = next;
-
dev_dbg(xdev->dev, "handling endpoint %s\n", ep->full_name);
remote = of_graph_get_remote_port_parent(ep);