Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ep93xx Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/b514dd85e971
branches: trunk
changeset: 327466:b514dd85e971
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 08 18:08:48 2014 +0000
description:
Remove unused variables
diffstat:
sys/arch/arm/ep93xx/epcom.c | 9 ++++-----
sys/arch/arm/ep93xx/epe.c | 10 ++--------
2 files changed, 6 insertions(+), 13 deletions(-)
diffs (81 lines):
diff -r c51b38e9b0d5 -r b514dd85e971 sys/arch/arm/ep93xx/epcom.c
--- a/sys/arch/arm/ep93xx/epcom.c Sat Mar 08 18:08:16 2014 +0000
+++ b/sys/arch/arm/ep93xx/epcom.c Sat Mar 08 18:08:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epcom.c,v 1.24 2012/11/12 18:00:36 skrll Exp $ */
+/* $NetBSD: epcom.c,v 1.25 2014/03/08 18:08:48 skrll Exp $ */
/*
* Copyright (c) 1998, 1999, 2001, 2002, 2004 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.24 2012/11/12 18:00:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.25 2014/03/08 18:08:48 skrll Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -874,7 +874,7 @@
if (!db_active)
#endif
{
- int cn_trapped = 0; /* unused */
+ int cn_trapped __unused = 0;
cn_check_magic(dev, c, epcom_cnm_state);
}
@@ -1017,10 +1017,9 @@
u_char *put, *end;
u_int cc;
u_int flagr;
- u_int intr;
uint32_t c, csts;
- intr = bus_space_read_4(iot, ioh, EPCOM_IntIDIntClr);
+ (void) bus_space_read_4(iot, ioh, EPCOM_IntIDIntClr);
if (COM_ISALIVE(sc) == 0)
panic("intr on disabled epcom");
diff -r c51b38e9b0d5 -r b514dd85e971 sys/arch/arm/ep93xx/epe.c
--- a/sys/arch/arm/ep93xx/epe.c Sat Mar 08 18:08:16 2014 +0000
+++ b/sys/arch/arm/ep93xx/epe.c Sat Mar 08 18:08:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epe.c,v 1.30 2014/03/02 13:22:21 joerg Exp $ */
+/* $NetBSD: epe.c,v 1.31 2014/03/08 18:08:48 skrll Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.30 2014/03/02 13:22:21 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.31 2014/03/08 18:08:48 skrll Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -460,11 +460,8 @@
int
epe_mii_readreg(device_t self, int phy, int reg)
{
- struct epe_softc *sc;
uint32_t d, v;
- sc = device_private(self);
-
d = EPE_READ(SelfCtl);
EPE_WRITE(SelfCtl, d & ~SelfCtl_PSPRS); /* no preamble suppress */
EPE_WRITE(MIICmd, (MIICmd_READ | (phy << 5) | reg));
@@ -477,11 +474,8 @@
void
epe_mii_writereg(device_t self, int phy, int reg, int val)
{
- struct epe_softc *sc;
uint32_t d;
- sc = device_private(self);
-
d = EPE_READ(SelfCtl);
EPE_WRITE(SelfCtl, d & ~SelfCtl_PSPRS); /* no preamble suppress */
EPE_WRITE(MIIData, val);
Home |
Main Index |
Thread Index |
Old Index