linux(4): Fix "set but not used" warnings

No functional changes.

Sponsored By:	EPSRC
This commit is contained in:
Edward Tomasz Napierala 2021-11-29 16:44:40 +00:00
parent fbf5246757
commit a089c17d32
2 changed files with 1 additions and 3 deletions

View File

@ -439,7 +439,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
struct l_sigframe *fp, frame;
struct sigacts *psp;
int onstack, sig;
uint32_t spsr;
td = curthread;
p = td->td_proc;
@ -474,7 +473,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
/* Fill in the frame to copy out */
bzero(&frame, sizeof(frame));
get_mcontext(td, &frame.sf_uc.uc_mcontext, 0);
spsr = frame.sf_uc.uc_mcontext.mc_gpregs.gp_spsr;
/* Translate the signal. */
sig = bsd_to_linux_signal(sig);

View File

@ -482,7 +482,7 @@ linux_clone3(struct thread *td, struct linux_clone3_args *args)
int
linux_exit(struct thread *td, struct linux_exit_args *args)
{
struct linux_emuldata *em;
struct linux_emuldata *em __diagused;
em = em_find(td);
KASSERT(em != NULL, ("exit: emuldata not found.\n"));