Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2018 17:26:44 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336009 - head/sys/riscv/riscv
Message-ID:  <201807051726.w65HQiPn070260@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807051726.w65HQiPn070260>