git: 1c64538f584c - main - Fix "set but not used" for bge
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Dec 2021 06:30:16 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=1c64538f584c1ef001ce2d2feb2f89efa973061a
commit 1c64538f584c1ef001ce2d2feb2f89efa973061a
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-04 06:29:51 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-04 06:29:51 +0000
Fix "set but not used" for bge
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/dev/bge/if_bge.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index e63a821888e4..825ac5db0b20 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -4811,11 +4811,9 @@ bge_tick(void *xsc)
static void
bge_stats_update_regs(struct bge_softc *sc)
{
- if_t ifp;
struct bge_mac_stats *stats;
uint32_t val;
- ifp = sc->bge_ifp;
stats = &sc->bge_mac_stats;
stats->ifHCOutOctets +=
@@ -6236,7 +6234,6 @@ bge_add_sysctls(struct bge_softc *sc)
{
struct sysctl_ctx_list *ctx;
struct sysctl_oid_list *children;
- int unit;
ctx = device_get_sysctl_ctx(sc->bge_dev);
children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->bge_dev));
@@ -6260,7 +6257,6 @@ bge_add_sysctls(struct bge_softc *sc)
#endif
- unit = device_get_unit(sc->bge_dev);
/*
* A common design characteristic for many Broadcom client controllers
* is that they only support a single outstanding DMA read operation