The branch main has been updated by jhb:

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

commit 48c21c21554cd230dbc066c7e7af9f42e9ef472a
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-04-09 00:25:14 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2022-04-09 00:25:14 +0000

    tca6408: Remove unused variable.
---
 sys/dev/iicbus/gpio/tca6408.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/iicbus/gpio/tca6408.c b/sys/dev/iicbus/gpio/tca6408.c
index d63fa8b64d56..36f6108e2e68 100644
--- a/sys/dev/iicbus/gpio/tca6408.c
+++ b/sys/dev/iicbus/gpio/tca6408.c
@@ -211,15 +211,12 @@ tca6408_pin_max(device_t dev, int *pin)
 static int
 tca6408_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags)
 {
-       struct tca6408_softc *sc;
        uint8_t buffer;
        int error;
 
        if (pin >= PINS_NUM || flags == NULL)
                return (EINVAL);
 
-       sc = device_get_softc(dev);
-
        error = tca6408_read1(dev, TCA6408_CONFIG_REG, &buffer);
        if (error != 0)
                return (error);

Reply via email to