Commit 45fed46f authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds

[PATCH] ppx32: Fix uninitialized variable in set_preferred_console

This fixes an uninitialized variable warning in arch/ppc/kernel/setup.c,
and this time gcc is actually right, there is a path that could result
in offset being uninitialized.  Zero is a sane default in this instance.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 72480ef8
...@@ -499,7 +499,7 @@ static int __init set_preferred_console(void) ...@@ -499,7 +499,7 @@ static int __init set_preferred_console(void)
{ {
struct device_node *prom_stdout; struct device_node *prom_stdout;
char *name; char *name;
int offset; int offset = 0;
if (of_stdout_device == NULL) if (of_stdout_device == NULL)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment