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:
parent
89fc8c31ff
commit
c681e4a45b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue