mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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:
parent
e2576591b9
commit
ed166a0173
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue