Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2015 06:56:05 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277108 - head/sys/dev/mii
Message-ID:  <201501130656.t0D6u5NH016109@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Jan 13 06:56:04 2015
New Revision: 277108
URL: https://svnweb.freebsd.org/changeset/base/277108

Log:
  Remove unused variables.
  
  CID:	1262431
  CID:	1262430

Modified:
  head/sys/dev/mii/jmphy.c
  head/sys/dev/mii/rgephy.c

Modified: head/sys/dev/mii/jmphy.c
==============================================================================
--- head/sys/dev/mii/jmphy.c	Tue Jan 13 06:27:02 2015	(r277107)
+++ head/sys/dev/mii/jmphy.c	Tue Jan 13 06:56:04 2015	(r277108)
@@ -100,10 +100,8 @@ jmphy_probe(device_t dev)
 static int
 jmphy_attach(device_t dev)
 {
-	struct mii_attach_args *ma;
 	u_int flags;
 
-	ma = device_get_ivars(dev);
 	flags = 0;
 	if (mii_dev_mac_match(dev, "jme") &&
 	    (miibus_get_flags(dev) & MIIF_MACPRIV0) != 0)

Modified: head/sys/dev/mii/rgephy.c
==============================================================================
--- head/sys/dev/mii/rgephy.c	Tue Jan 13 06:27:02 2015	(r277107)
+++ head/sys/dev/mii/rgephy.c	Tue Jan 13 06:56:04 2015	(r277108)
@@ -113,11 +113,9 @@ static int
 rgephy_attach(device_t dev)
 {
 	struct mii_softc *sc;
-	struct mii_attach_args *ma;
 	u_int flags;
 
 	sc = device_get_softc(dev);
-	ma = device_get_ivars(dev);
 	flags = 0;
 	if (mii_dev_mac_match(dev, "re"))
 		flags |= MIIF_PHYPRIV0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501130656.t0D6u5NH016109>