mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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:
parent
8c2748b922
commit
3db5be6821
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue