Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys fix unused variables
details: https://anonhg.NetBSD.org/src/rev/1aeb7e267f6b
branches: trunk
changeset: 326176:1aeb7e267f6b
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 21 19:50:16 2014 +0000
description:
fix unused variables
diffstat:
sys/arch/acorn32/podulebus/csc.c | 7 ++-----
sys/arch/acorn32/podulebus/esc.c | 6 ++----
sys/arch/acorn32/podulebus/sfas.c | 6 ++----
sys/dev/podulebus/sec.c | 5 +++--
4 files changed, 9 insertions(+), 15 deletions(-)
diffs (114 lines):
diff -r c46a0b934d15 -r 1aeb7e267f6b sys/arch/acorn32/podulebus/csc.c
--- a/sys/arch/acorn32/podulebus/csc.c Tue Jan 21 19:46:45 2014 +0000
+++ b/sys/arch/acorn32/podulebus/csc.c Tue Jan 21 19:50:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: csc.c,v 1.18 2012/10/27 17:17:23 chs Exp $ */
+/* $NetBSD: csc.c,v 1.19 2014/01/21 19:50:40 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: csc.c,v 1.18 2012/10/27 17:17:23 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: csc.c,v 1.19 2014/01/21 19:50:40 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -289,9 +289,6 @@
csc_led(void *v, int mode)
{
struct sfas_softc *sc = v;
- csc_regmap_p rp;
-
- rp = (csc_regmap_p)sc->sc_fas;
if (mode) {
sc->sc_led_status++;
diff -r c46a0b934d15 -r 1aeb7e267f6b sys/arch/acorn32/podulebus/esc.c
--- a/sys/arch/acorn32/podulebus/esc.c Tue Jan 21 19:46:45 2014 +0000
+++ b/sys/arch/acorn32/podulebus/esc.c Tue Jan 21 19:50:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: esc.c,v 1.25 2012/10/27 17:17:23 chs Exp $ */
+/* $NetBSD: esc.c,v 1.26 2014/01/21 19:50:40 christos Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.25 2012/10/27 17:17:23 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.26 2014/01/21 19:50:40 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1618,11 +1618,9 @@
void
escicmd(struct esc_softc *dev, struct esc_pending *pendp)
{
- esc_regmap_p rp;
struct nexus *nexus;
nexus = &dev->sc_nexus[pendp->xs->xs_periph->periph_target];
- rp = dev->sc_esc;
if (!escselect(dev, pendp, (char *)pendp->xs->cmd, pendp->xs->cmdlen,
(char *)pendp->xs->data, pendp->xs->datalen,
diff -r c46a0b934d15 -r 1aeb7e267f6b sys/arch/acorn32/podulebus/sfas.c
--- a/sys/arch/acorn32/podulebus/sfas.c Tue Jan 21 19:46:45 2014 +0000
+++ b/sys/arch/acorn32/podulebus/sfas.c Tue Jan 21 19:50:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfas.c,v 1.22 2012/10/27 17:17:24 chs Exp $ */
+/* $NetBSD: sfas.c,v 1.23 2014/01/21 19:50:40 christos Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.22 2012/10/27 17:17:24 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.23 2014/01/21 19:50:40 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1538,11 +1538,9 @@
void
sfasicmd(struct sfas_softc *dev, struct sfas_pending *pendp)
{
- sfas_regmap_p rp;
struct nexus *nexus;
nexus = &dev->sc_nexus[pendp->xs->xs_periph->periph_target];
- rp = dev->sc_fas;
if (!sfasselect(dev, pendp, (char *)pendp->xs->cmd, pendp->xs->cmdlen,
(char *)pendp->xs->data, pendp->xs->datalen,
diff -r c46a0b934d15 -r 1aeb7e267f6b sys/dev/podulebus/sec.c
--- a/sys/dev/podulebus/sec.c Tue Jan 21 19:46:45 2014 +0000
+++ b/sys/dev/podulebus/sec.c Tue Jan 21 19:50:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sec.c,v 1.15 2009/05/11 20:13:49 bjh21 Exp $ */
+/* $NetBSD: sec.c,v 1.16 2014/01/21 19:50:16 christos Exp $ */
/*-
* Copyright (c) 2000, 2001, 2006 Ben Harris
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sec.c,v 1.15 2009/05/11 20:13:49 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sec.c,v 1.16 2014/01/21 19:50:16 christos Exp $");
#include <sys/param.h>
@@ -446,6 +446,7 @@
GET_SBIC_asr(sc_sbic, asr);
while (!(asr & SBIC_ASR_INT));
GET_SBIC_csr(sc_sbic, csr);
+ __USE(csr);
dmac_write(sc, NEC71071_DCTRL1, DCTRL1_CMP | DCTRL1_RQL);
dmac_write(sc, NEC71071_DCTRL2, 0);
sec_cli(sc);
Home |
Main Index |
Thread Index |
Old Index