axgbe: Stop checking for failures from malloc(M_WAITOK)

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit ab0b996bddd96300d56b7d2aa830e2479cdfa92b)
This commit is contained in:
Zhenlei Huang 2024-09-03 18:25:25 +08:00
parent 8c2748b922
commit 3db5be6821

View file

@ -3482,8 +3482,6 @@ xgbe_phy_init(struct xgbe_prv_data *pdata)
return (ret);
phy_data = malloc(sizeof(*phy_data), M_AXGBE, M_WAITOK | M_ZERO);
if (!phy_data)
return (-ENOMEM);
pdata->phy_data = phy_data;
phy_data->port_mode = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_MODE);