git: 8b872247de88 - stable/13 - alc(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 05:08:42 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=8b872247de889c9b8faa9bb309728a83e993de0d
commit 8b872247de889c9b8faa9bb309728a83e993de0d
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:35 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:41 +0000
alc(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 0cd3976d076218ea10761dc3f38ecf8549768ad5)
(cherry picked from commit a6c873a822b5dd51861616324abf3ba466958c7e)
---
sys/dev/alc/if_alc.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
index edd3981fba7b..c4e66fe8e1be 100644
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -1627,12 +1627,6 @@ alc_attach(device_t dev)
/* Create local taskq. */
sc->alc_tq = taskqueue_create_fast("alc_taskq", M_WAITOK,
taskqueue_thread_enqueue, &sc->alc_tq);
- if (sc->alc_tq == NULL) {
- device_printf(dev, "could not create taskqueue.\n");
- ether_ifdetach(ifp);
- error = ENXIO;
- goto fail;
- }
taskqueue_start_threads(&sc->alc_tq, 1, PI_NET, "%s taskq",
device_get_nameunit(sc->alc_dev));