From: Andi Kleen Date: Tue, 13 Feb 2007 12:26:25 +0000 (+0100) Subject: [PATCH] i386: Fix warning in microcode.c X-Git-Tag: v2.6.21-rc1~184^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2ba1ff2b796746722fc4fe8bdcd1f30a834e3d0a;p=linux-2.6-omap-h63xx.git [PATCH] i386: Fix warning in microcode.c Fix bogus gcc warning linux/arch/i386/kernel/microcode.c:387: warning: ‘new_mc’ may be used uninitialized in this function Signed-off-by: Andi Kleen --- diff --git a/arch/i386/kernel/microcode.c b/arch/i386/kernel/microcode.c index 381252bae3d..b8f16633a6e 100644 --- a/arch/i386/kernel/microcode.c +++ b/arch/i386/kernel/microcode.c @@ -384,7 +384,7 @@ static int do_microcode_update (void) { long cursor = 0; int error = 0; - void *new_mc; + void *new_mc = NULL; int cpu; cpumask_t old;