Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=46e4cf6c14e0a5b8916a1236a7079ccad3f4352a
Commit:     46e4cf6c14e0a5b8916a1236a7079ccad3f4352a
Parent:     82a03b92279f2ea80e11dc2c419fdaa3800401a2
Author:     Sylvain Munaut <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 12 23:13:23 2007 +0100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Tue Feb 13 15:35:53 2007 +1100

    [POWERPC] Fix unbalanced of_node_{get,put} in efika-setup.c
    
    Signed-off-by: Sylvain Munaut <[EMAIL PROTECTED]>
    Acked-by: Grant Likely <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/52xx/efika-setup.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/powerpc/platforms/52xx/efika-setup.c 
b/arch/powerpc/platforms/52xx/efika-setup.c
index d61ce84..b6945cb 100644
--- a/arch/powerpc/platforms/52xx/efika-setup.c
+++ b/arch/powerpc/platforms/52xx/efika-setup.c
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to