Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 82a03b92
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -42,15 +42,14 @@ static void efika_show_cpuinfo(struct seq_file *m)
	const char *codegenvendor = NULL;

	root = of_find_node_by_path("/");
	if (root) {
	if (!root)
		return;

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

		of_node_put(root);
	}

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