git: 7fcd41dfa6ee - stable/15 - gpioled: remove redundant -1 check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Sep 2025 10:46:44 UTC
The branch stable/15 has been updated by vexeduxr: URL: https://cgit.FreeBSD.org/src/commit/?id=7fcd41dfa6ee3595d5263e8e298632c6317afb83 commit 7fcd41dfa6ee3595d5263e8e298632c6317afb83 Author: Ahmad Khalifa <vexeduxr@FreeBSD.org> AuthorDate: 2025-09-18 22:03:32 +0000 Commit: Ahmad Khalifa <vexeduxr@FreeBSD.org> CommitDate: 2025-09-21 10:03:14 +0000 gpioled: remove redundant -1 check The function is never called with onoff = -1 MFC after: 3 days MFC with: 9ae3c30 (cherry picked from commit e0c83ab3b362c9bd45c5d21683012cecab28d802) --- sys/dev/gpio/gpioled.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/gpio/gpioled.c b/sys/dev/gpio/gpioled.c index 71af5741b2fe..a36c2faef379 100644 --- a/sys/dev/gpio/gpioled.c +++ b/sys/dev/gpio/gpioled.c @@ -75,8 +75,6 @@ gpioled_control(void *priv, int onoff) struct gpioled_softc *sc; sc = (struct gpioled_softc *)priv; - if (onoff == -1) /* Keep the current state. */ - return; if (sc->sc_softinvert) onoff = !onoff; GPIOLED_LOCK(sc);