summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/atheros/if_arge.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/mips/atheros/if_arge.c b/sys/mips/atheros/if_arge.c
index 2a5422a..0154ae2 100644
--- a/sys/mips/atheros/if_arge.c
+++ b/sys/mips/atheros/if_arge.c
@@ -191,10 +191,8 @@ MTX_SYSINIT(miibus_mtx, &miibus_mtx, "arge mii lock", MTX_DEF);
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
OpenPOWER on IntegriCloud