aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpaa2/dpaa2_mc.c
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2024-09-03 10:25:37 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2024-09-03 10:25:37 +0000
commit36ef39831fe0e89f0b1672340a44c4ac1183158e (patch)
treedced5d4cc7bc70d48da56d20d5a0a421d3adfd8d /sys/dev/dpaa2/dpaa2_mc.c
parentaf28fc3c191cf572f7def767c60fff59d48947df (diff)
Diffstat (limited to 'sys/dev/dpaa2/dpaa2_mc.c')
-rw-r--r--sys/dev/dpaa2/dpaa2_mc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c
index 66867a18068c..da8f8a077d6b 100644
--- a/sys/dev/dpaa2/dpaa2_mc.c
+++ b/sys/dev/dpaa2/dpaa2_mc.c
@@ -462,8 +462,6 @@ dpaa2_mc_manage_dev(device_t mcdev, device_t dpaa2_dev, uint32_t flags)
return (EINVAL);
di = malloc(sizeof(*di), M_DPAA2_MC, M_WAITOK | M_ZERO);
- if (!di)
- return (ENOMEM);
di->dpaa2_dev = dpaa2_dev;
di->flags = flags;
di->owners = 0;