From c4746a16b5136a54810f72d9bb840c406fdfb113 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 3 Nov 2013 22:22:03 +0000 Subject: [PATCH] - remove set but unused variables --- sys/arch/powerpc/pci/pci_machdep_ofw.c | 9 ++++----- sys/arch/powerpc/powerpc/syscall.c | 7 ++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sys/arch/powerpc/pci/pci_machdep_ofw.c b/sys/arch/powerpc/pci/pci_machdep_ofw.c index e8f2412442fe..b792756220d6 100644 --- a/sys/arch/powerpc/pci/pci_machdep_ofw.c +++ b/sys/arch/powerpc/pci/pci_machdep_ofw.c @@ -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 -__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 #include @@ -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; diff --git a/sys/arch/powerpc/powerpc/syscall.c b/sys/arch/powerpc/powerpc/syscall.c index b0470bb1260e..07aa477e8d39 100644 --- a/sys/arch/powerpc/powerpc/syscall.c +++ b/sys/arch/powerpc/powerpc/syscall.c @@ -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;