git: f48ab7cc481e - main - iicbus: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Dec 2021 13:14:35 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f48ab7cc481e2bdf60a6449179087df4b73db426 commit f48ab7cc481e2bdf60a6449179087df4b73db426 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-18 13:14:04 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-12-18 13:14:04 +0000 iicbus: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/iicbus/htu21.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/iicbus/htu21.c b/sys/dev/iicbus/htu21.c index 6b834354d73f..53a2bf6d234b 100644 --- a/sys/dev/iicbus/htu21.c +++ b/sys/dev/iicbus/htu21.c @@ -300,13 +300,11 @@ htu21_set_cfg(device_t dev, uint8_t cfg) static int htu21_heater_sysctl(SYSCTL_HANDLER_ARGS) { - struct htu21_softc *sc; device_t dev; uint8_t cfg; int error, heater; dev = arg1; - sc = device_get_softc(dev); if (req->oldptr != NULL) { error = htu21_get_cfg(dev, &cfg); @@ -327,13 +325,11 @@ htu21_heater_sysctl(SYSCTL_HANDLER_ARGS) static int htu21_power_sysctl(SYSCTL_HANDLER_ARGS) { - struct htu21_softc *sc; device_t dev; uint8_t cfg; int error, power; dev = arg1; - sc = device_get_softc(dev); if (req->oldptr != NULL) { error = htu21_get_cfg(dev, &cfg);