git: 617dcd17a5c9 - stable/13 - bge(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:45 UTC
The branch stable/13 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=617dcd17a5c930702ceb28f32016bc3bf3494c93

commit 617dcd17a5c930702ceb28f32016bc3bf3494c93
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:36 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:42 +0000

    bge(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 d44bc2f07b971fe1f451a1fff0389650a2502422)
    (cherry picked from commit f5cbe8ce89f1332e1188b9b315bc2707f50ef3d6)
---
 sys/dev/bge/if_bge.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index dcd65f9348d6..91b33492b2d2 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3897,12 +3897,6 @@ again:
 		    ~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) {