]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix warning in arch/ppc/pmac/simple/misc.c
authorColin Leroy <colin@colino.net>
Fri, 8 Oct 2004 00:34:03 +0000 (17:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:34:03 +0000 (17:34 -0700)
Fixes a "variable might be used uninitialized".  As usual it's a harmless
warning because it can't really be, but that cleans the compilation's
output :)

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/boot/simple/misc.c

index be92465dc0aa007ee398e29eff8edaacd284c267..1b2ae8d77077b22782302a1cf797ca35368cea16 100644 (file)
@@ -96,7 +96,7 @@ decompress_kernel(unsigned long load_addr, int num_words, unsigned long cksum)
 #endif
        char *cp;
        struct bi_record *rec;
-       unsigned long initrd_loc, TotalMemory = 0;
+       unsigned long initrd_loc = 0, TotalMemory = 0;
 
 #ifdef CONFIG_SERIAL_8250_CONSOLE
        com_port = serial_init(0, NULL);