aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-09 00:25:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-09 00:25:14 +0000
commit48c21c21554cd230dbc066c7e7af9f42e9ef472a (patch)
tree52142658ea0ae9d836e360cc9cbf2de5c9a7e17b
parent683ca8034d238ddb01808a5b1f3645daacd3a0b7 (diff)
downloadsrc-48c21c21554cd230dbc066c7e7af9f42e9ef472a.tar.gz
src-48c21c21554cd230dbc066c7e7af9f42e9ef472a.zip
tca6408: Remove unused variable.
-rw-r--r--sys/dev/iicbus/gpio/tca6408.c3
1 files changed, 0 insertions, 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);