summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/syscall.h')
-rw-r--r--arch/sparc/include/asm/syscall.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sparc/include/asm/syscall.h b/arch/sparc/include/asm/syscall.h
index a5a8153766b3..49f71fd5b56e 100644
--- a/arch/sparc/include/asm/syscall.h
+++ b/arch/sparc/include/asm/syscall.h
@@ -128,12 +128,7 @@ static inline void syscall_set_arguments(struct task_struct *task,
static inline int syscall_get_arch(void)
{
-#if defined(__sparc__) && defined(__arch64__)
- return test_thread_flag(TIF_32BIT) ? AUDIT_ARCH_SPARC
- : AUDIT_ARCH_SPARC64;
-#else
- return AUDIT_ARCH_SPARC;
-#endif
+ return is_32bit_task() ? AUDIT_ARCH_SPARC : AUDIT_ARCH_SPARC64;
}
#endif /* __ASM_SPARC_SYSCALL_H */