git: 34df2dfa5135 - main - bcm2835_gpio: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 00:28:14 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=34df2dfa5135376f3080c3ab25edb56a3698355e
commit 34df2dfa5135376f3080c3ab25edb56a3698355e
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 00:25:15 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 00:25:15 +0000
bcm2835_gpio: Remove unused variable.
This was a static local (i.e. a global variable) which was probably
not intended.
---
sys/arm/broadcom/bcm2835/bcm2835_gpio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_gpio.c b/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
index 70b69eb154e8..b07e5cc6c361 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
@@ -1208,9 +1208,7 @@ bcm_gpio_configure_pins(device_t dev, phandle_t cfgxref)
uint32_t *pins;
uint32_t *pulls;
uint32_t function;
- static struct bcm_gpio_softc *sc;
- sc = device_get_softc(dev);
cfgnode = OF_node_from_xref(cfgxref);
pins = NULL;