summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-08-22 01:16:29 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-19 23:55:56 +0200
commit1681634b8c70353d8ca211b9b3443889a16dafeb (patch)
treeed2fafa0b114bd60a9efd517c412651826de78a7 /kernel
parentsignal: replace sigset_to_compat() with put_compat_sigset() (diff)
downloadlinux-1681634b8c70353d8ca211b9b3443889a16dafeb.tar.xz
linux-1681634b8c70353d8ca211b9b3443889a16dafeb.zip
signal: simplify compat_sigpending()
Remove "if it's big-endian..." ifdef in compat_sigpending(), use the endian-agnostic variant. Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 14ad6bb90dad..f59c05fc374a 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -3330,15 +3330,11 @@ SYSCALL_DEFINE1(sigpending, old_sigset_t __user *, set)
#ifdef CONFIG_COMPAT
COMPAT_SYSCALL_DEFINE1(sigpending, compat_old_sigset_t __user *, set32)
{
-#ifdef __BIG_ENDIAN
sigset_t set;
int err = do_sigpending(&set, sizeof(set.sig[0]));
if (!err)
err = put_user(set.sig[0], set32);
return err;
-#else
- return sys_rt_sigpending((sigset_t __user *)set32, sizeof(*set32));
-#endif
}
#endif