bge(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45853
This commit is contained in:
Zhenlei Huang 2024-09-03 18:25:36 +08:00
parent b29adaaf44
commit d44bc2f07b

View file

@ -3890,12 +3890,6 @@ bge_attach(device_t dev)
~BGE_MSIMODE_ONE_SHOT_DISABLE);
sc->bge_tq = taskqueue_create_fast("bge_taskq", M_WAITOK,
taskqueue_thread_enqueue, &sc->bge_tq);
if (sc->bge_tq == NULL) {
device_printf(dev, "could not create taskqueue.\n");
ether_ifdetach(ifp);
error = ENOMEM;
goto fail;
}
error = taskqueue_start_threads(&sc->bge_tq, 1, PI_NET,
"%s taskq", device_get_nameunit(sc->bge_dev));
if (error != 0) {