]> err.no Git - linux-2.6/commitdiff
i386: arch/x86/math-emu/fpu_entry.c warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 19 Mar 2008 01:46:06 +0000 (18:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:20 +0000 (17:41 +0200)
arch/x86/math-emu/fpu_entry.c:555: warning: 'entry_sel_off.empty' is used uninitialized in this function

Presumably it's harmless, but I'll sleep better at night knowing that we
initialised it.

Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/math-emu/fpu_entry.c

index 760baeea5f07c9ad13858d19faa1060a7de3d849..4bab3b14539242ceeddf3a1580617f71c9227710 100644 (file)
@@ -276,6 +276,7 @@ asmlinkage void math_emulate(long arg)
        entry_sel_off.offset = FPU_ORIG_EIP;
        entry_sel_off.selector = FPU_CS;
        entry_sel_off.opcode = (byte1 << 8) | FPU_modrm;
+       entry_sel_off.empty = 0;
 
        FPU_rm = FPU_modrm & 7;