]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: fix arch/x86/kernel/cpu/mtrr/main.c warning
authorYinghai Lu <yhlu.kernel@gmail.com>
Fri, 19 Sep 2008 06:55:27 +0000 (23:55 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 07:16:06 +0000 (09:16 +0200)
commit279b0bbba2bb647348ad90e183b3960aa99eccfd
tree1c605b206a48a4b81feea3ce5fce150eee88b1e8
parent5e51900be6c15488b80343d3c3e62d4d605ba9a9
x86: fix arch/x86/kernel/cpu/mtrr/main.c warning

fix this warning reported by Andrew Morton:

> arch/x86/kernel/cpu/mtrr/main.c: In function 'mtrr_bp_init':
> arch/x86/kernel/cpu/mtrr/main.c:1170: warning: 'extra_remove_base' may be used uninitialized in this function

the warning is bogus but the logic that prevents uninitialized use
is a bit convoluted so simplify it all.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mtrr/main.c