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

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

MFC after:	1 week
This commit is contained in:
Mark Johnston 2022-01-04 09:42:34 -05:00
parent e2576591b9
commit ed166a0173

View file

@ -724,10 +724,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);