aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 16:30:23 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2015-05-24 16:30:23 +0000
commit26c68e1fe5151e00c71aa691b92961c8bccd2c3a (patch)
tree931adca33eb21bd7f1c2139eb0648349202f9c0c /sys/i386
parent2245df381a1c749f6a0e6f615739143a891b12f6 (diff)
downloadsrc-26c68e1fe5151e00c71aa691b92961c8bccd2c3a.tar.gz
src-26c68e1fe5151e00c71aa691b92961c8bccd2c3a.zip
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
Notes
Notes: svn path=/head/; revision=283436
Diffstat (limited to 'sys/i386')
-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 c1dca1d7390b..f27fad8d7fce 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));