git: b620bc6e1dfa - stable/13 - axgbe: Stop checking for failures from taskqueue_create(M_WAITOK)

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

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

commit b620bc6e1dfad5c1838a3027cb902d64180bdd7a
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:41 +0000

    axgbe: Stop checking for failures from taskqueue_create(M_WAITOK)
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D45853
    
    (cherry picked from commit b29adaaf44f6cf9433c782bbeeefd12d74d395a5)
    (cherry picked from commit 39c35f6c5445d09b51a3fd366e8d64434b8fe7f1)
---
 sys/dev/axgbe/if_axgbe_pci.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c
index cd498bf1b5d7..679de1c6092a 100644
--- a/sys/dev/axgbe/if_axgbe_pci.c
+++ b/sys/dev/axgbe/if_axgbe_pci.c
@@ -540,11 +540,6 @@ axgbe_if_attach_pre(if_ctx_t ctx)
 	/* create the workqueue */
 	pdata->dev_workqueue = taskqueue_create("axgbe", M_WAITOK,
 	    taskqueue_thread_enqueue, &pdata->dev_workqueue);
-	if (pdata->dev_workqueue == NULL) {
-		axgbe_error("Unable to allocate workqueue\n");
-		ret = ENOMEM;
-		goto free_channels;
-	}
 	ret = taskqueue_start_threads(&pdata->dev_workqueue, 1, PI_NET,
 	    "axgbe dev taskq");
 	if (ret) {
@@ -560,8 +555,6 @@ axgbe_if_attach_pre(if_ctx_t ctx)
 
 free_task_queue:
 	taskqueue_free(pdata->dev_workqueue);
-
-free_channels:
 	axgbe_free_channels(sc);
 
 release_bus_resource: