Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Remove unused variables.
details: https://anonhg.NetBSD.org/src/rev/880366532f21
branches: trunk
changeset: 325309:880366532f21
user: martin <martin%NetBSD.org@localhost>
date: Tue Dec 17 16:00:23 2013 +0000
description:
Remove unused variables.
diffstat:
sys/dev/mii/rgephy.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diffs (84 lines):
diff -r fde0563d975f -r 880366532f21 sys/dev/mii/rgephy.c
--- a/sys/dev/mii/rgephy.c Tue Dec 17 14:30:18 2013 +0000
+++ b/sys/dev/mii/rgephy.c Tue Dec 17 16:00:23 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rgephy.c,v 1.34 2013/12/16 18:29:57 jakllsch Exp $ */
+/* $NetBSD: rgephy.c,v 1.35 2013/12/17 16:00:23 martin Exp $ */
/*
* Copyright (c) 2003
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.34 2013/12/16 18:29:57 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.35 2013/12/17 16:00:23 martin Exp $");
/*
@@ -169,12 +169,9 @@
static int
rgephy_service(struct mii_softc *sc, struct mii_data *mii, int cmd)
{
- struct rgephy_softc *rsc;
struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
int reg, speed, gig, anar;
- rsc = (struct rgephy_softc *)sc;
-
switch (cmd) {
case MII_POLLSTAT:
/*
@@ -350,7 +347,6 @@
static void
rgephy_status(struct mii_softc *sc)
{
- struct rgephy_softc *rsc;
struct mii_data *mii = sc->mii_pdata;
int gstat, bmsr, bmcr;
uint16_t ssr;
@@ -358,7 +354,6 @@
mii->mii_media_status = IFM_AVALID;
mii->mii_media_active = IFM_ETHER;
- rsc = (struct rgephy_softc *)sc;
if (sc->mii_mpd_rev >= 2) {
ssr = PHY_READ(sc, RGEPHY_MII_SSR);
if (ssr & RGEPHY_SSR_LINK)
@@ -455,11 +450,9 @@
static void
rgephy_loop(struct mii_softc *sc)
{
- struct rgephy_softc *rsc;
uint32_t bmsr;
int i;
- rsc = (struct rgephy_softc *)sc;
if (sc->mii_mpd_rev < 2) {
PHY_WRITE(sc, MII_BMCR, BMCR_PDOWN);
DELAY(1000);
@@ -492,10 +485,8 @@
static void
rgephy_load_dspcode(struct mii_softc *sc)
{
- struct rgephy_softc *rsc;
int val;
- rsc = (struct rgephy_softc *)sc;
if (sc->mii_mpd_rev >= 2)
return;
@@ -591,13 +582,11 @@
static void
rgephy_reset(struct mii_softc *sc)
{
- struct rgephy_softc *rsc;
uint16_t ssr;
mii_phy_reset(sc);
DELAY(1000);
- rsc = (struct rgephy_softc *)sc;
if (sc->mii_mpd_rev < 2) {
rgephy_load_dspcode(sc);
} else if (sc->mii_mpd_rev == 3) {
Home |
Main Index |
Thread Index |
Old Index