aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2024-09-03 10:25:25 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2024-09-03 10:25:25 +0000
commitab0b996bddd96300d56b7d2aa830e2479cdfa92b (patch)
treee4248612b3ca213d69afbbe4438d42d7b261a8da
parent3fdf587ab02f33018bd042094e3d0bd4169352ed (diff)
axgbe: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852
-rw-r--r--sys/dev/axgbe/xgbe-phy-v2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/axgbe/xgbe-phy-v2.c b/sys/dev/axgbe/xgbe-phy-v2.c
index 5b39d61694e6..8c6069f83076 100644
--- a/sys/dev/axgbe/xgbe-phy-v2.c
+++ b/sys/dev/axgbe/xgbe-phy-v2.c
@@ -3771,8 +3771,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);