svn commit: r228064 - head/sys/mips/atheros

Aleksandr Rybalko ray at FreeBSD.org
Mon Nov 28 13:42:59 UTC 2011


Author: ray
Date: Mon Nov 28 13:42:59 2011
New Revision: 228064
URL: http://svn.freebsd.org/changeset/base/228064

Log:
  Simplify arge_flush_ddr to use updated ar71xx_device_flush_ddr_ge(unit).
  
  Approved by: adrian (mentor)

Modified:
  head/sys/mips/atheros/if_arge.c

Modified: head/sys/mips/atheros/if_arge.c
==============================================================================
--- head/sys/mips/atheros/if_arge.c	Mon Nov 28 13:32:39 2011	(r228063)
+++ head/sys/mips/atheros/if_arge.c	Mon Nov 28 13:42:59 2011	(r228064)
@@ -191,10 +191,8 @@ MTX_SYSINIT(miibus_mtx, &miibus_mtx, "ar
 static void
 arge_flush_ddr(struct arge_softc *sc)
 {
-	if (sc->arge_mac_unit == 0)
-		ar71xx_device_flush_ddr_ge(0);
-	else
-		ar71xx_device_flush_ddr_ge(1);
+
+	ar71xx_device_flush_ddr_ge(sc->arge_mac_unit);
 }
 
 static int 


More information about the svn-src-head mailing list