mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 2 additions and 4 deletions
|
|
@ -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