x86: remove unnecessary #ifdef CONFIG_X86_32...#else
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>
This commit is contained in:
committed by
Ingo Molnar
parent
bc4e0f9ae2
commit
95c60b08c6
@@ -55,11 +55,7 @@ static inline int notify_page_fault(struct pt_regs *regs)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
/* kprobe_running() needs smp_processor_id() */
|
/* kprobe_running() needs smp_processor_id() */
|
||||||
#ifdef CONFIG_X86_32
|
|
||||||
if (!user_mode_vm(regs)) {
|
if (!user_mode_vm(regs)) {
|
||||||
#else
|
|
||||||
if (!user_mode(regs)) {
|
|
||||||
#endif
|
|
||||||
preempt_disable();
|
preempt_disable();
|
||||||
if (kprobe_running() && kprobe_fault_handler(regs, 14))
|
if (kprobe_running() && kprobe_fault_handler(regs, 14))
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
Reference in New Issue
Block a user