[PATCH 03/16] of_path: of_find_path(): remove unused variable len
Marc Kleine-Budde
mkl at pengutronix.de
Sat Feb 28 13:40:08 PST 2015
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
drivers/of/of_path.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c
index f0fd917ada56..df63c5782a02 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;
--
2.1.4
More information about the barebox
mailing list