sendsig: eliminate write only code variable

Sponsored by:		Netflix
This commit is contained in:
Warner Losh
2022-04-04 17:54:23 -06:00
parent 97663c8d9e
commit 80f33a69a8
-2
View File
@@ -274,13 +274,11 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
struct sysentvec *sysent;
int onstack;
int sig;
int code;
td = curthread;
p = td->td_proc;
PROC_LOCK_ASSERT(p, MA_OWNED);
sig = ksi->ksi_signo;
code = ksi->ksi_code;
psp = p->p_sigacts;
mtx_assert(&psp->ps_mtx, MA_OWNED);
tf = td->td_frame;