summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_sysvec.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-05-24 16:30:23 +0000
committerdchagin <dchagin@FreeBSD.org>2015-05-24 16:30:23 +0000
commitd1ecbe4998ae401b8799ace2c9bc618643f118d2 (patch)
tree931adca33eb21bd7f1c2139eb0648349202f9c0c /sys/i386/linux/linux_sysvec.c
parentc04276b109430081569c1ccb4aa8eb78cc695a56 (diff)
downloadFreeBSD-src-d1ecbe4998ae401b8799ace2c9bc618643f118d2.zip
FreeBSD-src-d1ecbe4998ae401b8799ace2c9bc618643f118d2.tar.gz
Use the BSD_TO_LINUX_SIGNAL() wherever there is no need
to check the ABI as it is known. Differential Revision: https://reviews.freebsd.org/D1086
Diffstat (limited to 'sys/i386/linux/linux_sysvec.c')
-rw-r--r--sys/i386/linux/linux_sysvec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index c1dca1d..f27fad8 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -480,9 +480,7 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
@@ -623,9 +621,7 @@ linux_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
/*
* Build the argument list for the signal handler.
*/
- if (p->p_sysent->sv_sigtbl)
- if (sig <= p->p_sysent->sv_sigsize)
- sig = p->p_sysent->sv_sigtbl[_SIG_IDX(sig)];
+ sig = BSD_TO_LINUX_SIGNAL(sig);
bzero(&frame, sizeof(frame));
OpenPOWER on IntegriCloud