staging: r8188eu: convert else if to else in rtw_led.c
PATCH 1/1 staging: r8188eu: convert else if to else in rtw_led.c
The else if in this block is redundant, it can be a simple else.
if (x) {
...
} else if (!x) {
...
}
Convert two such else if statements to simple else in rw_led.c.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/r8188eu/core/rtw_led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/r8188eu/core/rtw_led.c +2 -2
@@ -110,7 +110,7 @@ static void blink_work(struct work_struct *work) pLed->bLedLinkBlinkInProgress = true; pLed->CurrLedState =LED_BLINK_NORMAL ;schedule_delayed_work (&pLed->blink_work,LED_BLINK_LINK_INTVL ); - }else if (!check_fwstate (pmlmepriv, _FW_LINKED)) { + }else { pLed->bLedNoLinkBlinkInProgress = true; pLed->CurrLedState =LED_BLINK_SLOWLY ;schedule_delayed_work (&pLed->blink_work,LED_BLINK_NO_LINK_INTVL );
@@ -131,7 +131,7 @@ static void blink_work(struct work_struct *work) pLed->bLedLinkBlinkInProgress = true; pLed->CurrLedState =LED_BLINK_NORMAL ;schedule_delayed_work (&pLed->blink_work,LED_BLINK_LINK_INTVL ); - }else if (!check_fwstate (pmlmepriv, _FW_LINKED)) { + }else { pLed->bLedNoLinkBlinkInProgress = true; pLed->CurrLedState =LED_BLINK_SLOWLY ;schedule_delayed_work (&pLed->blink_work,LED_BLINK_NO_LINK_INTVL );
Signature · 1 line
2.35.1