mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2024-12-26 14:06:17 +00:00
[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 <segher@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
67ccd2fcd4
commit
9a6b50703e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user