summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-11-20 11:29:20 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2020-11-20 11:29:20 +0000
commitf88e0af64abb8317c67fa075125b1943a7f42997 (patch)
tree65bdb13d5c6cc0fdf47c7e2f759bced7ef03916d
parentafd0c3c26801cd038203da1df61be9728e3369a4 (diff)
Notes
-rw-r--r--sys/dev/dwc/if_dwc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c
index d4bc4caffa32..8a0adfeea6cd 100644
--- a/sys/dev/dwc/if_dwc.c
+++ b/sys/dev/dwc/if_dwc.c
@@ -1153,7 +1153,7 @@ out:
return (0);
}
-static int
+static void
dwc_get_hwaddr(struct dwc_softc *sc, uint8_t *hwaddr)
{
uint32_t hi, lo, rnd;
@@ -1185,8 +1185,6 @@ dwc_get_hwaddr(struct dwc_softc *sc, uint8_t *hwaddr)
hwaddr[4] = rnd >> 8;
hwaddr[5] = rnd >> 0;
}
-
- return (0);
}
#define GPIO_ACTIVE_LOW 1
@@ -1336,10 +1334,7 @@ dwc_attach(device_t dev)
}
/* Read MAC before reset */
- if (dwc_get_hwaddr(sc, macaddr)) {
- device_printf(sc->dev, "can't get mac\n");
- return (ENXIO);
- }
+ dwc_get_hwaddr(sc, macaddr);
/* Reset the PHY if needed */
if (dwc_reset(dev) != 0) {