summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2021-08-22 13:40:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-26 12:20:25 +0200
commitf9f72f7f722e32d8f5645e53c1ca90347dedc95c (patch)
treef979a2e47b185d30a260cbcd28248ab93faa29ed /drivers/staging
parent3eaa30d1623e109143c2e30b5738720c1816b851 (diff)
staging: r8188eu: remove dead code
if (0) is never true, remove code that is never executed. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210822114014.21584-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/r8188eu/core/rtw_led.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c
index 306862aec53a..29c48f1a4fec 100644
--- a/drivers/staging/r8188eu/core/rtw_led.c
+++ b/drivers/staging/r8188eu/core/rtw_led.c
@@ -121,10 +121,7 @@ static void SwLedBlink(struct LED_871x *pLed)
}
if (bStopBlinking) {
- /* if (padapter->pwrctrlpriv.cpwm >= PS_STATE_S2) */
- if (0) {
- SwLedOff(padapter, pLed);
- } else if ((check_fwstate(pmlmepriv, _FW_LINKED)) && (!pLed->bLedOn)) {
+ if ((check_fwstate(pmlmepriv, _FW_LINKED)) && (!pLed->bLedOn)) {
SwLedOn(padapter, pLed);
} else if ((check_fwstate(pmlmepriv, _FW_LINKED)) && pLed->bLedOn) {
SwLedOff(padapter, pLed);