svn commit: r277108 - head/sys/dev/mii

Gleb Smirnoff glebius at FreeBSD.org
Tue Jan 13 06:56:06 UTC 2015


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;


More information about the svn-src-head mailing list