summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_path.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-03-01 13:32:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-03 08:23:46 +0100
commitc681e4a45ba2c517313eb0428a679d77e604d7df (patch)
tree50632d22a7ece35bee92ea98a321aa511838a85d /drivers/of/of_path.c
parent89fc8c31ff873514039335494f39ba8517fa7e3a (diff)
downloadbarebox-c681e4a45ba2c517313eb0428a679d77e604d7df.tar.gz
barebox-c681e4a45ba2c517313eb0428a679d77e604d7df.tar.xz
of_path: of_find_path(): remove unused variable len
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of/of_path.c')
-rw-r--r--drivers/of/of_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c
index f0fd917ada..df63c5782a 100644
--- a/drivers/of/of_path.c
+++ b/drivers/of/of_path.c
@@ -132,9 +132,9 @@ int of_find_path(struct device_node *node, const char *propname, char **outpath)
struct of_path op = {};
struct device_node *rnode;
const char *path, *str;
- int i, len, ret;
+ int i, ret;
- path = of_get_property(node, propname, &len);
+ path = of_get_property(node, propname, NULL);
if (!path)
return -EINVAL;