mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05: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 7ea3fd3bb5f4039c372fd72aeef004fe12454537)
This commit is contained in:
parent
518e138448
commit
70280bc71d
1 changed files with 0 additions and 5 deletions
|
|
@ -4616,10 +4616,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 */
|
||||
|
|
@ -4816,7 +4812,6 @@ abort_with_tq:
|
|||
taskqueue_free(sc->tq);
|
||||
sc->tq = NULL;
|
||||
}
|
||||
abort_with_nothing:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue