9
0
Fork 0

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>
This commit is contained in:
Marc Kleine-Budde 2015-03-01 13:32:09 +01:00 committed by Sascha Hauer
parent 89fc8c31ff
commit c681e4a45b
1 changed files with 2 additions and 2 deletions

View File

@ -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;