diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-20 23:27:29 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-21 00:09:45 +0100 |
commit | 7c178a26d3e753d2a4346d3e4b8aa549d387f698 (patch) | |
tree | 6e136758afac0870f66b4bd029e0cb4033db6d21 /arch/x86/mm/fault.c | |
parent | d951734654f76a370a89b4e531af9b765bd13541 (diff) | |
download | op-kernel-dev-7c178a26d3e753d2a4346d3e4b8aa549d387f698.zip op-kernel-dev-7c178a26d3e753d2a4346d3e4b8aa549d387f698.tar.gz |
x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()
Impact: cleanup
Removal of an #ifdef in fault_in_kernel_space(), by making
use of the new TASK_SIZE_MAX symbol which is now available
on 32-bit too.
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 6fa9f17..f195691 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -960,11 +960,7 @@ access_error(unsigned long error_code, int write, struct vm_area_struct *vma) static int fault_in_kernel_space(unsigned long address) { -#ifdef CONFIG_X86_32 - return address >= TASK_SIZE; -#else return address >= TASK_SIZE_MAX; -#endif } /* |