diff options
Diffstat (limited to 'commands/oftree.c')
-rw-r--r-- | commands/oftree.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/commands/oftree.c b/commands/oftree.c index 468235a043..914951735b 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -164,16 +164,7 @@ static int do_oftree(int argc, char *argv[]) of_print_nodes(root, 0); of_free(root); } else { - struct device_node *root, *n; - - root = of_get_root_node(); - if (!root) { - ret = -ENOENT; - goto out; - } - - n = of_find_node_by_path(root, node); - + struct device_node *n = of_find_node_by_path(node); if (!n) { ret = -ENOENT; goto out; |