]> err.no Git - linux-2.6/commitdiff
[POWERPC] Fix ppc_rtas_progress_show()
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 16 May 2007 13:12:17 +0000 (23:12 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 May 2007 11:11:15 +0000 (21:11 +1000)
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 <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/rtas-proc.c

index 190b7ed1dbfb10c0756de46fae00b982fcaab44e..f2e3bc714d7695834971e627f2c89368c8798755 100644 (file)
@@ -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;
 }