summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_sysvec.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 16:29:51 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 16:29:51 +0000
commitf31e70952fa696f99ce03554a8e4e1a7a7a96931 (patch)
treeae7618105772a4b88096be61ff40c9ea82c86ea3 /sys/i386/linux/linux_sysvec.c
parentcda33c12b343f1c255629b1f7611655e3b29e3ac (diff)
downloadFreeBSD-src-f31e70952fa696f99ce03554a8e4e1a7a7a96931.zip
FreeBSD-src-f31e70952fa696f99ce03554a8e4e1a7a7a96931.tar.gz
MFC r283436:
Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known.
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