From: Ingo Molnar Date: Fri, 20 Feb 2009 22:27:29 +0000 (+0100) Subject: x86, mm: fault.c, remove #ifdef from fault_in_kernel_space() X-Git-Tag: v2.6.30-rc1~211^2~43^5~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7c178a26d3e753d2a4346d3e4b8aa549d387f698;p=karo-tx-linux.git 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 6fa9f175cba3..f195691ec26e 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 } /*