git: 1c347de37f34 - main - axgbe_setup_sysctl is a nop, remove it and the call to it.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 28 Feb 2022 17:50:36 UTC
The branch main has been updated by imp:

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

commit 1c347de37f344688c3fe9726d5864d120728ce2f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-02-28 17:12:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-02-28 17:14:33 +0000

    axgbe_setup_sysctl is a nop, remove it and the call to it.
    
    Should we need something like this in the future, we can add it back.
    
    Sponsored by:           Netflix
---
 sys/dev/axgbe/if_axgbe_pci.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c
index c7830de4c859..aa880d9747ee 100644
--- a/sys/dev/axgbe/if_axgbe_pci.c
+++ b/sys/dev/axgbe/if_axgbe_pci.c
@@ -1304,18 +1304,6 @@ xgbe_default_config(struct xgbe_prv_data *pdata)
         pdata->enable_rss = 1;
 }
 
-static void
-axgbe_setup_sysctl(struct xgbe_prv_data *pdata)
-{
-	struct sysctl_ctx_list *clist;
-	struct sysctl_oid *parent;
-	struct sysctl_oid_list *top;
-	
-	clist = device_get_sysctl_ctx(pdata->dev);
-	parent = device_get_sysctl_tree(pdata->dev);
-	top = SYSCTL_CHILDREN(parent);
-}
-
 static int
 axgbe_if_attach_post(if_ctx_t ctx)
 {
@@ -1438,8 +1426,6 @@ axgbe_if_attach_post(if_ctx_t ctx)
 	scctx->isc_max_frame_size = ifp->if_mtu + 18;
 	scctx->isc_min_frame_size = XGMAC_MIN_PACKET;
 
-	axgbe_setup_sysctl(pdata);
-
 	axgbe_sysctl_init(pdata);
 
 	axgbe_pci_init(pdata);