git: 3a2190633618 - stable/13 - e1000: remove NEEDGIANT from a couple sysctls

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Sun, 29 Sep 2024 03:58:11 UTC
The branch stable/13 has been updated by kbowling:

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

commit 3a21906336185ca5d71744a59c0dc996f0d5d152
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-09-22 03:52:48 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-29 03:57:18 +0000

    e1000: remove NEEDGIANT from a couple sysctls
    
    These are internally locked already
    
    (cherry picked from commit f6e1b567921187b9331bd71c86e94cf232dd7761)
---
 sys/dev/e1000/if_em.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index b1883d5cc9ab..873f06cc272f 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -833,11 +833,11 @@ em_if_attach_pre(if_ctx_t ctx)
 	child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
 
 	SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "nvm",
-	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, 0,
+	    CTLTYPE_INT | CTLFLAG_RW, sc, 0,
 	    em_sysctl_nvm_info, "I", "NVM Information");
 
 	SYSCTL_ADD_PROC(ctx_list, child, OID_AUTO, "fw_version",
-	    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0,
+	    CTLTYPE_STRING | CTLFLAG_RD, sc, 0,
 	    em_sysctl_print_fw_version, "A",
 	    "Prints FW/NVM Versions");