mvneta: Unconditionally print an error message if mii_attach() fails

The error message is useful for diagnosing mvneta_attach() failures.

(cherry picked from commit ed166a0173)
This commit is contained in:
Mark Johnston 2022-01-04 09:42:34 -05:00
parent 884938e769
commit 4905ce27b8

View file

@ -735,10 +735,8 @@ mvneta_attach(device_t self)
mvneta_mediastatus, BMSR_DEFCAPMASK, sc->phy_addr,
MII_OFFSET_ANY, 0);
if (error != 0) {
if (bootverbose) {
device_printf(self,
"MII attach failed, error: %d\n", error);
}
device_printf(self, "MII attach failed, error: %d\n",
error);
ether_ifdetach(sc->ifp);
mvneta_detach(self);
return (error);