diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-18 22:03:32 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-18 22:06:37 +0000 |
| commit | e0c83ab3b362c9bd45c5d21683012cecab28d802 (patch) | |
| tree | 06416a14cf1c76c28e101cf4a8050e32e27f304f | |
| parent | 2c06b824436df6177545cc0f1603e5c3bfbf3365 (diff) | |
gpioled: remove redundant -1 check
The function is never called with onoff = -1
MFC after: 3 days
MFC with: 9ae3c30
| -rw-r--r-- | sys/dev/gpio/gpioled.c | 2 |
1 files changed, 0 insertions, 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); |
