git: c5c981d4437b - main - signals: plug a set-but-not-used var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Apr 2022 12:46:09 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=c5c981d4437b382c136cd7cc3d61abfea58f7d24 commit c5c981d4437b382c136cd7cc3d61abfea58f7d24 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-04-19 12:33:19 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-04-19 12:45:57 +0000 signals: plug a set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/kern_sig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 1b6464a4a0cc..55b2957d163b 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2019,11 +2019,10 @@ trapsignal(struct thread *td, ksiginfo_t *ksi) struct sigacts *ps; struct proc *p; sigset_t sigmask; - int code, sig; + int sig; p = td->td_proc; sig = ksi->ksi_signo; - code = ksi->ksi_code; KASSERT(_SIG_VALID(sig), ("invalid signal")); sigfastblock_fetch(td); @@ -2038,7 +2037,7 @@ trapsignal(struct thread *td, ksiginfo_t *ksi) #ifdef KTRACE if (KTRPOINT(curthread, KTR_PSIG)) ktrpsig(sig, ps->ps_sigact[_SIG_IDX(sig)], - &td->td_sigmask, code); + &td->td_sigmask, ksi->ksi_code); #endif (*p->p_sysent->sv_sendsig)(ps->ps_sigact[_SIG_IDX(sig)], ksi, &td->td_sigmask);