From 2eaedc2774e3a4797a7539b7950c9b45069a9866 Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 20 Jan 2003 01:35:11 +0000 Subject: [PATCH] Remove variables that are only assigned too but not referenced. --- sys/compat/ibcs2/ibcs2_misc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/compat/ibcs2/ibcs2_misc.c b/sys/compat/ibcs2/ibcs2_misc.c index 5b5b7aa83832..87c470d5eef3 100644 --- a/sys/compat/ibcs2/ibcs2_misc.c +++ b/sys/compat/ibcs2/ibcs2_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ibcs2_misc.c,v 1.60 2003/01/18 07:40:45 thorpej Exp $ */ +/* $NetBSD: ibcs2_misc.c,v 1.61 2003/01/20 01:35:11 simonb Exp $ */ /* * Copyright (c) 1994, 1995, 1998 Scott Bartram @@ -55,7 +55,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.60 2003/01/18 07:40:45 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.61 2003/01/20 01:35:11 simonb Exp $"); #include #include @@ -1095,13 +1095,12 @@ ibcs2_sys_nice(l, v, retval) syscallarg(int) incr; } */ *uap = v; struct proc *p = l->l_proc; - int error; struct sys_setpriority_args sa; SCARG(&sa, which) = PRIO_PROCESS; SCARG(&sa, who) = 0; SCARG(&sa, prio) = p->p_nice - NZERO + SCARG(uap, incr); - if ((error = sys_setpriority(l, &sa, retval)) != 0) + if (sys_setpriority(l, &sa, retval) != 0) return EPERM; *retval = p->p_nice - NZERO; return 0; @@ -1172,14 +1171,13 @@ ibcs2_sys_plock(l, v, retval) syscallarg(int) cmd; } */ *uap = v; struct proc *p = l->l_proc; - int error; #define IBCS2_UNLOCK 0 #define IBCS2_PROCLOCK 1 #define IBCS2_TEXTLOCK 2 #define IBCS2_DATALOCK 4 - if ((error = suser(p->p_ucred, &p->p_acflag)) != 0) + if (suser(p->p_ucred, &p->p_acflag) != 0) return EPERM; switch(SCARG(uap, cmd)) { case IBCS2_UNLOCK: