diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-03-30 05:11:49 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-03-30 07:26:07 -0400 |
commit | 1a327ffd3d6a79ed85d53b683c185196060ac3b3 (patch) | |
tree | e84daeecf3395b80dbedbe760d731c42412f3ebc /arch/s390 | |
parent | 57fe1b263907430a27fabcfde11a144caac9f5cd (diff) |
s390/syscalls: simplify syscall_get_arch()
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/syscall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/syscall.h b/arch/s390/include/asm/syscall.h index 5bc12598ae9e..6ba0bf928909 100644 --- a/arch/s390/include/asm/syscall.h +++ b/arch/s390/include/asm/syscall.h | |||
@@ -95,6 +95,6 @@ static inline int syscall_get_arch(void) | |||
95 | if (test_tsk_thread_flag(current, TIF_31BIT)) | 95 | if (test_tsk_thread_flag(current, TIF_31BIT)) |
96 | return AUDIT_ARCH_S390; | 96 | return AUDIT_ARCH_S390; |
97 | #endif | 97 | #endif |
98 | return sizeof(long) == 8 ? AUDIT_ARCH_S390X : AUDIT_ARCH_S390; | 98 | return AUDIT_ARCH_S390X; |
99 | } | 99 | } |
100 | #endif /* _ASM_SYSCALL_H */ | 100 | #endif /* _ASM_SYSCALL_H */ |