Skip to content

Commit

Permalink
x86: remove unnecessary #ifdef CONFIG_X86_32...#else
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo Fernando Padovan authored and Ingo Molnar committed Jul 3, 2008
1 parent bc4e0f9 commit 95c60b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95c60b0

Please sign in to comment.