- remove set but unused variables

This commit is contained in:
mrg 2013-11-03 22:22:03 +00:00
parent 44f61bfe42
commit c4746a16b5
2 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_machdep_ofw.c,v 1.18 2012/02/01 09:54:03 matt Exp $ */
/* $NetBSD: pci_machdep_ofw.c,v 1.19 2013/11/03 22:22:03 mrg Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pci_machdep_ofw.c,v 1.18 2012/02/01 09:54:03 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_machdep_ofw.c,v 1.19 2013/11/03 22:22:03 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -375,13 +375,12 @@ genofw_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
prop_dictionary_t dict, devsub;
prop_object_t pinsub;
prop_number_t pbus;
int busno, bus, pin, line, swiz, dev, origdev, func, i;
int busno, pin, line, dev, origdev, func, i;
char key[20];
pin = pa->pa_intrpin;
line = pa->pa_intrline;
bus = busno = pa->pa_bus;
swiz = pa->pa_intrswiz;
busno = pa->pa_bus;
origdev = dev = pa->pa_device;
func = pa->pa_function;
i = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.c,v 1.52 2013/06/26 06:31:53 matt Exp $ */
/* $NetBSD: syscall.c,v 1.53 2013/11/03 22:22:03 mrg Exp $ */
/*
* Copyright (C) 2002 Matt Thomas
@ -61,7 +61,7 @@
#define EMULNAME(x) (x)
#define EMULNAMEU(x) (x)
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.52 2013/06/26 06:31:53 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.53 2013/11/03 22:22:03 mrg Exp $");
void
child_return(void *arg)
@ -91,7 +91,6 @@ EMULNAME(syscall)(struct trapframe *tf)
const struct sysent *callp;
size_t argsize;
register_t code;
register_t realcode;
register_t *params, rval[2];
register_t args[10];
int error;
@ -105,7 +104,6 @@ EMULNAME(syscall)(struct trapframe *tf)
params = tf->tf_fixreg + FIRSTARG;
n = NARGREG;
realcode = code;
{
switch (code) {
case EMULNAMEU(SYS_syscall):
@ -129,7 +127,6 @@ EMULNAME(syscall)(struct trapframe *tf)
code &= EMULNAMEU(SYS_NSYSENT) - 1;
callp = p->p_emul->e_sysent + code;
realcode = code;
}
argsize = callp->sy_argsize;