git: 7b7353261e4e - stable/13 - jme(4): Stop checking for failures from taskqueue_create_fast(M_WAITOK)

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 30 Sep 2024 05:08:48 UTC
The branch stable/13 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=7b7353261e4eb0e118d9dea2fb7f260204b88aad

commit 7b7353261e4eb0e118d9dea2fb7f260204b88aad
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:38 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:43 +0000

    jme(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 3fdef8e855027d5c9bec06e2a53e8f99f7d5694b)
    (cherry picked from commit 6b25a8f079586f8f3e4badaec402dae1ab39ddb5)
---
 sys/dev/jme/if_jme.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/jme/if_jme.c b/sys/dev/jme/if_jme.c
index 03503da27e57..219ac675308d 100644
--- a/sys/dev/jme/if_jme.c
+++ b/sys/dev/jme/if_jme.c
@@ -882,12 +882,6 @@ jme_attach(device_t dev)
 	/* Create local taskq. */
 	sc->jme_tq = taskqueue_create_fast("jme_taskq", M_WAITOK,
 	    taskqueue_thread_enqueue, &sc->jme_tq);
-	if (sc->jme_tq == NULL) {
-		device_printf(dev, "could not create taskqueue.\n");
-		ether_ifdetach(ifp);
-		error = ENXIO;
-		goto fail;
-	}
 	taskqueue_start_threads(&sc->jme_tq, 1, PI_NET, "%s taskq",
 	    device_get_nameunit(sc->jme_dev));