Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 13:42:59 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228064 - head/sys/mips/atheros
Message-ID:  <201111281342.pASDgx5S093348@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 



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