Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 19:01:22 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r199911 - stable/7/sys/dev/mii
Message-ID:  <200911291901.nATJ1M4d004832@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sun Nov 29 19:01:21 2009
New Revision: 199911
URL: http://svn.freebsd.org/changeset/base/199911

Log:
  MFC 197587.
    Don't encode model id twice.
  
    Reported by:	Kristof Provost <kristof <> sigsegv dot be>

Modified:
  stable/7/sys/dev/mii/e1000phy.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/mii/e1000phy.c
==============================================================================
--- stable/7/sys/dev/mii/e1000phy.c	Sun Nov 29 18:59:43 2009	(r199910)
+++ stable/7/sys/dev/mii/e1000phy.c	Sun Nov 29 19:01:21 2009	(r199911)
@@ -247,7 +247,7 @@ e1000phy_reset(struct mii_softc *sc)
 		}
 	}
 
-	switch (MII_MODEL(esc->mii_model)) {
+	switch (esc->mii_model) {
 	case MII_MODEL_MARVELL_E3082:
 	case MII_MODEL_MARVELL_E1112:
 	case MII_MODEL_MARVELL_E1118:



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