Commit 46e4cf6c authored by Sylvain Munaut's avatar Sylvain Munaut Committed by Paul Mackerras

[POWERPC] Fix unbalanced of_node_{get,put} in efika-setup.c

Signed-off-by: default avatarSylvain Munaut <tnt@246tNt.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 82a03b92
...@@ -42,15 +42,14 @@ static void efika_show_cpuinfo(struct seq_file *m) ...@@ -42,15 +42,14 @@ static void efika_show_cpuinfo(struct seq_file *m)
const char *codegenvendor = NULL; const char *codegenvendor = NULL;
root = of_find_node_by_path("/"); root = of_find_node_by_path("/");
if (root) { if (!root)
return;
revision = get_property(root, "revision", NULL); revision = get_property(root, "revision", NULL);
codegendescription = codegendescription =
get_property(root, "CODEGEN,description", NULL); get_property(root, "CODEGEN,description", NULL);
codegenvendor = get_property(root, "CODEGEN,vendor", NULL); codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
of_node_put(root);
}
if (codegendescription) if (codegendescription)
seq_printf(m, "machine\t\t: %s\n", codegendescription); seq_printf(m, "machine\t\t: %s\n", codegendescription);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment