Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2022 04:29:31 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e490a1c8c5eb - stable/13 - tca6416: remove write only sc
Message-ID:  <202210020429.2924TViI058281@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

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

commit e490a1c8c5eb5341174ada44e70331e88e878f20
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:30 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:52 +0000

    tca6416: remove write only sc
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 22127c7c1b9c0f8feb73f13a829b8b757f2274eb)
---
 sys/dev/iicbus/gpio/tca6416.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/iicbus/gpio/tca6416.c b/sys/dev/iicbus/gpio/tca6416.c
index cc76bd8971eb..436a21ec10b7 100644
--- a/sys/dev/iicbus/gpio/tca6416.c
+++ b/sys/dev/iicbus/gpio/tca6416.c
@@ -274,12 +274,9 @@ tca6416_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)
 static int
 tca6416_pin_getflags(device_t dev, uint32_t pin, uint32_t *pflags)
 {
-	struct tca6416_softc *sc;
 	int error;
 	uint8_t reg_addr, reg_bit, val;
 
-	sc = device_get_softc(dev);
-
 	if (pin >= NUM_PINS || pflags == NULL)
 		return (EINVAL);
 
@@ -366,12 +363,9 @@ tca6416_pin_getname(device_t dev, uint32_t pin, char *name)
 static int
 tca6416_pin_get(device_t dev, uint32_t pin, unsigned int *pval)
 {
-	struct tca6416_softc *sc;
 	uint8_t reg_bit, reg_addr, reg_pvalue;
 	int error;
 
-	sc = device_get_softc(dev);
-
 	if (pin >= NUM_PINS || pval == NULL)
 		return (EINVAL);
 



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