Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2022 00:28:14 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 34df2dfa5135 - main - bcm2835_gpio: Remove unused variable.
Message-ID:  <202204090028.2390SE6Z057075@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090028.2390SE6Z057075>