mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
cas(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45853
(cherry picked from commit af28fc3c19
)
This commit is contained in:
parent
f5cbe8ce89
commit
e78770d62f
@ -205,11 +205,6 @@ cas_attach(struct cas_softc *sc)
|
|||||||
TASK_INIT(&sc->sc_tx_task, 1, cas_tx_task, ifp);
|
TASK_INIT(&sc->sc_tx_task, 1, cas_tx_task, ifp);
|
||||||
sc->sc_tq = taskqueue_create_fast("cas_taskq", M_WAITOK,
|
sc->sc_tq = taskqueue_create_fast("cas_taskq", M_WAITOK,
|
||||||
taskqueue_thread_enqueue, &sc->sc_tq);
|
taskqueue_thread_enqueue, &sc->sc_tq);
|
||||||
if (sc->sc_tq == NULL) {
|
|
||||||
device_printf(sc->sc_dev, "could not create taskqueue\n");
|
|
||||||
error = ENXIO;
|
|
||||||
goto fail_ifnet;
|
|
||||||
}
|
|
||||||
error = taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, "%s taskq",
|
error = taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, "%s taskq",
|
||||||
device_get_nameunit(sc->sc_dev));
|
device_get_nameunit(sc->sc_dev));
|
||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
@ -462,7 +457,6 @@ cas_attach(struct cas_softc *sc)
|
|||||||
bus_dma_tag_destroy(sc->sc_pdmatag);
|
bus_dma_tag_destroy(sc->sc_pdmatag);
|
||||||
fail_taskq:
|
fail_taskq:
|
||||||
taskqueue_free(sc->sc_tq);
|
taskqueue_free(sc->sc_tq);
|
||||||
fail_ifnet:
|
|
||||||
if_free(ifp);
|
if_free(ifp);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user