Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9a6b50703e95b638f610a65ffcc5faf4356f73c9
Commit:     9a6b50703e95b638f610a65ffcc5faf4356f73c9
Parent:     67ccd2fcd42333493a33993312c76fb2d4c2a2d6
Author:     Segher Boessenkool <[EMAIL PROTECTED]>
AuthorDate: Wed May 16 23:12:17 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu May 17 21:11:15 2007 +1000

    [POWERPC] Fix ppc_rtas_progress_show()
    
    Fixes the warning
    
        arch/powerpc/kernel/rtas-proc.c: In function 'ppc_rtas_progress_show':
        arch/powerpc/kernel/rtas-proc.c:382: warning: the address of
                'progress_led' will always evaluate as 'true'
    
    by fixing the code to do what it presumably is meant to do.
    
    Signed-off-by: Segher Boessenkool <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/rtas-proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c
index 190b7ed..f2e3bc7 100644
--- a/arch/powerpc/kernel/rtas-proc.c
+++ b/arch/powerpc/kernel/rtas-proc.c
@@ -379,7 +379,7 @@ static ssize_t ppc_rtas_progress_write(struct file *file,
 /* ****************************************************************** */
 static int ppc_rtas_progress_show(struct seq_file *m, void *v)
 {
-       if (progress_led)
+       if (progress_led[0])
                seq_printf(m, "%s\n", progress_led);
        return 0;
 }
-
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