aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpaa2/dpaa2_channel.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_channel.c
parentaf28fc3c191cf572f7def767c60fff59d48947df (diff)
Diffstat (limited to 'sys/dev/dpaa2/dpaa2_channel.c')
-rw-r--r--sys/dev/dpaa2/dpaa2_channel.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/dpaa2/dpaa2_channel.c b/sys/dev/dpaa2/dpaa2_channel.c
index 87b76923a16d..654c6f2baf70 100644
--- a/sys/dev/dpaa2/dpaa2_channel.c
+++ b/sys/dev/dpaa2/dpaa2_channel.c
@@ -146,12 +146,6 @@ dpaa2_chan_setup(device_t dev, device_t iodev, device_t condev, device_t bpdev,
}
ch = malloc(sizeof(struct dpaa2_channel), M_DPAA2_CH, M_WAITOK | M_ZERO);
- if (ch == NULL) {
- device_printf(dev, "%s: malloc() failed\n", __func__);
- error = ENOMEM;
- goto fail_malloc;
- }
-
ch->ni_dev = dev;
ch->io_dev = iodev;
ch->con_dev = condev;
@@ -281,7 +275,6 @@ fail_dma_setup:
/* taskqueue_drain(ch->cleanup_tq, &ch->cleanup_task); */
/* } */
/* taskqueue_free(ch->cleanup_tq); */
-fail_malloc:
(void)DPAA2_CMD_CON_DISABLE(dev, child, DPAA2_CMD_TK(&cmd, contk));
fail_con_enable:
(void)DPAA2_CMD_CON_CLOSE(dev, child, DPAA2_CMD_TK(&cmd, contk));