1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

mxge(4): Stop checking for failures from taskqueue_create(M_WAITOK)

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

(cherry picked from commit 7ea3fd3bb5)
(cherry picked from commit 70280bc71d)
This commit is contained in:
Zhenlei Huang 2024-09-03 18:25:38 +08:00
parent 7000dd2e29
commit 1290de0d54

View File

@ -4757,10 +4757,6 @@ mxge_attach(device_t dev)
TASK_INIT(&sc->watchdog_task, 1, mxge_watchdog_task, sc);
sc->tq = taskqueue_create("mxge_taskq", M_WAITOK,
taskqueue_thread_enqueue, &sc->tq);
if (sc->tq == NULL) {
err = ENOMEM;
goto abort_with_nothing;
}
err = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */
1, /* alignment */
@ -4965,7 +4961,6 @@ mxge_attach(device_t dev)
taskqueue_free(sc->tq);
sc->tq = NULL;
}
abort_with_nothing:
return err;
}