git: 0a4089c734a2 - main - gpio tca6416: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:52 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0a4089c734a26b9bb9c84ec6df2010414db38632 commit 0a4089c734a26b9bb9c84ec6df2010414db38632 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:22 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:22 +0000 gpio tca6416: Remove unused variable. --- sys/dev/iicbus/gpio/tca6416.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/iicbus/gpio/tca6416.c b/sys/dev/iicbus/gpio/tca6416.c index 8007ae98f0c9..a3891207df73 100644 --- a/sys/dev/iicbus/gpio/tca6416.c +++ b/sys/dev/iicbus/gpio/tca6416.c @@ -505,14 +505,11 @@ tca6416_regdump_sysctl(SYSCTL_HANDLER_ARGS) { device_t dev; char buf[5]; - struct tca6416_softc *sc; int len, error; uint8_t reg, regval; dev = (device_t)arg1; reg = (uint8_t)arg2; - sc = device_get_softc(dev); - error = tca6416_read(dev, reg, ®val); if (error != 0) {