From 1c64538f584c1ef001ce2d2feb2f89efa973061a Mon Sep 17 00:00:00 2001 From: Scott Long Date: Fri, 3 Dec 2021 23:29:51 -0700 Subject: 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(-) (limited to 'sys/dev/bge') 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 -- cgit v1.3