git: 1290de0d5400 - stable/13 - mxge(4): Stop checking for failures from taskqueue_create(M_WAITOK)

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

URL: https://cgit.FreeBSD.org/src/commit/?id=1290de0d5400dd21930de0e1e022fc22fffecc1c

commit 1290de0d5400dd21930de0e1e022fc22fffecc1c
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

    mxge(4): Stop checking for failures from taskqueue_create(M_WAITOK)
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D45853
    
    (cherry picked from commit 7ea3fd3bb5f4039c372fd72aeef004fe12454537)
    (cherry picked from commit 70280bc71d28935346f7cc7c41ddd99e58b9604a)
---
 sys/dev/mxge/if_mxge.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index 440265762e7a..8e136470cdb1 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -4757,10 +4757,6 @@ mxge_attach(device_t dev)
 	TASK_INIT(&sc->watchdog_task, 1, mxge_watchdog_task, sc);
 	sc->tq = taskqueue_create("mxge_taskq", M_WAITOK,
 				  taskqueue_thread_enqueue, &sc->tq);
-	if (sc->tq == NULL) {
-		err = ENOMEM;
-		goto abort_with_nothing;
-	}
 
 	err = bus_dma_tag_create(bus_get_dma_tag(dev),	/* parent */
 				 1,			/* alignment */
@@ -4965,7 +4961,6 @@ abort_with_tq:
 		taskqueue_free(sc->tq);
 		sc->tq = NULL;
 	}
-abort_with_nothing:
 	return err;
 }