mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
884938e769
commit
4905ce27b8
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue