git: 4786d44fef55 - main - if_bnxt: sysctl: remove unused linux/delay.h include and dead mutex

From: Sumit Saxena <ssaxena_at_FreeBSD.org>
Date: Fri, 09 Oct 2026 10:13:00 UTC
The branch main has been updated by ssaxena:

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

commit 4786d44fef555fe5d4e82f0b716bb2cb0c0c1ecd
Author:     Sumit Saxena <sumit.saxena@broadcom.com>
AuthorDate: 2026-08-05 04:07:55 +0000
Commit:     Sumit Saxena <ssaxena@FreeBSD.org>
CommitDate: 2026-10-09 08:24:45 +0000

    if_bnxt: sysctl: remove unused linux/delay.h include and dead mutex
    
    <linux/delay.h> and the DEFINE_MUTEX(tmp_mutex) it enabled are both
    unused in bnxt_sysctl.c: no msleep/udelay/mdelay call remains, and
    tmp_mutex itself was never referenced anywhere.
    
    Reviewed by:    gallatin
    MFC after:      2 weeks
    Sponsored by:   Broadcom Inc.
    Differential Revision:  https://reviews.freebsd.org/D59087
---
 sys/dev/bnxt/bnxt_en/bnxt_sysctl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/bnxt/bnxt_en/bnxt_sysctl.c b/sys/dev/bnxt/bnxt_en/bnxt_sysctl.c
index cb906c38b906..a3d98df774f8 100644
--- a/sys/dev/bnxt/bnxt_en/bnxt_sysctl.c
+++ b/sys/dev/bnxt/bnxt_en/bnxt_sysctl.c
@@ -29,7 +29,6 @@
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #include <sys/ctype.h>
-#include <linux/delay.h>
 
 #include "bnxt.h"
 #include "bnxt_hwrm.h"
@@ -112,7 +111,6 @@ static const struct bnxt_mpc_cmp_time_counters_list mpc_cmp_counters[] = {
 };
 static const int mpc_cmp_counters_count = sizeof(mpc_cmp_counters) / sizeof(mpc_cmp_counters[0]);
 
-DEFINE_MUTEX(tmp_mutex); /* mutex lock for driver */
 extern void bnxt_fw_reset(struct bnxt_softc *bp);
 extern void bnxt_queue_sp_work(struct bnxt_softc *bp);
 extern bool