svn commit: r336009 - head/sys/riscv/riscv
Sean Bruno
sbruno at FreeBSD.org
Thu Jul 5 17:26:45 UTC 2018
Author: sbruno
Date: Thu Jul 5 17:26:44 2018
New Revision: 336009
URL: https://svnweb.freebsd.org/changeset/base/336009
Log:
riscv: Remove unused variable "code"
gcc found that the variabl "code", while being assigned a value, isn't
be used for anything.
Reviewed by: br
Differential Revision: https://reviews.freebsd.org/D16114
Modified:
head/sys/riscv/riscv/machdep.c
Modified: head/sys/riscv/riscv/machdep.c
==============================================================================
--- head/sys/riscv/riscv/machdep.c Thu Jul 5 17:26:13 2018 (r336008)
+++ head/sys/riscv/riscv/machdep.c Thu Jul 5 17:26:44 2018 (r336009)
@@ -548,7 +548,6 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask
struct thread *td;
struct proc *p;
int onstack;
- int code;
int sig;
td = curthread;
@@ -556,7 +555,6 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask
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);
More information about the svn-src-head
mailing list