Skip to content

Commit

Permalink
[POWERPC] Fix unbalanced of_node_{get,put} in efika-setup.c
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Sylvain Munaut authored and Paul Mackerras committed Feb 13, 2007
1 parent 82a03b9 commit 46e4cf6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions arch/powerpc/platforms/52xx/efika-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@ static void efika_show_cpuinfo(struct seq_file *m)
const char *codegenvendor = NULL;

root = of_find_node_by_path("/");
if (root) {
revision = get_property(root, "revision", NULL);
codegendescription =
get_property(root, "CODEGEN,description", NULL);
codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
if (!root)
return;

of_node_put(root);
}
revision = get_property(root, "revision", NULL);
codegendescription =
get_property(root, "CODEGEN,description", NULL);
codegenvendor = get_property(root, "CODEGEN,vendor", NULL);

if (codegendescription)
seq_printf(m, "machine\t\t: %s\n", codegendescription);
Expand Down

0 comments on commit 46e4cf6

Please sign in to comment.