aboutsummaryrefslogtreecommitdiff
path: root/sys
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
commitaf28fc3c191cf572f7def767c60fff59d48947df (patch)
tree9618e2090a621ed9c2614ba04f35ee474e52a29e /sys
parentd44bc2f07b971fe1f451a1fff0389650a2502422 (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cas/if_cas.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/cas/if_cas.c b/sys/dev/cas/if_cas.c
index 76d1b713e5bb..1f684097bd3a 100644
--- a/sys/dev/cas/if_cas.c
+++ b/sys/dev/cas/if_cas.c
@@ -205,11 +205,6 @@ cas_attach(struct cas_softc *sc)
TASK_INIT(&sc->sc_tx_task, 1, cas_tx_task, ifp);
sc->sc_tq = taskqueue_create_fast("cas_taskq", M_WAITOK,
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",
device_get_nameunit(sc->sc_dev));
if (error != 0) {
@@ -462,7 +457,6 @@ cas_attach(struct cas_softc *sc)
bus_dma_tag_destroy(sc->sc_pdmatag);
fail_taskq:
taskqueue_free(sc->sc_tq);
- fail_ifnet:
if_free(ifp);
return (error);
}