s390/syscalls: simplify syscall_get_arch()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 30 Mar 2015 09:11:49 +0000 (11:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 30 Mar 2015 11:26:07 +0000 (13:26 +0200)
Given that sizeof(long) is now always 8, we can simplify syscall_get_arch()
a bit.
Just another piece I didn't find when removing 31 bit support.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/syscall.h

index 5bc12598ae9ee6d5a38766b3e6eaf199b53be65f..6ba0bf9289096a96a68be68f2e86230404125f3b 100644 (file)
@@ -95,6 +95,6 @@ static inline int syscall_get_arch(void)
        if (test_tsk_thread_flag(current, TIF_31BIT))
                return AUDIT_ARCH_S390;
 #endif
-       return sizeof(long) == 8 ? AUDIT_ARCH_S390X : AUDIT_ARCH_S390;
+       return AUDIT_ARCH_S390X;
 }
 #endif /* _ASM_SYSCALL_H */