x86: remove unnecessary #ifdef CONFIG_X86_32...#else
authorGustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Wed, 25 Jun 2008 07:03:19 +0000 (04:03 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 3 Jul 2008 13:09:10 +0000 (15:09 +0200)
Remove the #ifdef conditional because this comparison is already done in
user_mode_vm().

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Cc: akpm@osdl.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/fault.c

index 8bcb6f40ccb6c61b762fac7def5c26a8eb01ba4b..1e64795714c8d1ef048450840d65e25cfbb37447 100644 (file)
@@ -55,11 +55,7 @@ static inline int notify_page_fault(struct pt_regs *regs)
        int ret = 0;
 
        /* kprobe_running() needs smp_processor_id() */
-#ifdef CONFIG_X86_32
        if (!user_mode_vm(regs)) {
-#else
-       if (!user_mode(regs)) {
-#endif
                preempt_disable();
                if (kprobe_running() && kprobe_fault_handler(regs, 14))
                        ret = 1;