Commit ccfe34c0 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8188eu: remove unnecessary parentheses in rtw_led.c

Remove unnecessary parentheses from conditionals.
Also clears 'Alignment should match open parenthesis'
checkpatch issue.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 00585495
...@@ -18,7 +18,7 @@ static void BlinkTimerCallback(struct timer_list *t) ...@@ -18,7 +18,7 @@ static void BlinkTimerCallback(struct timer_list *t)
struct LED_871x *pLed = from_timer(pLed, t, BlinkTimer); struct LED_871x *pLed = from_timer(pLed, t, BlinkTimer);
struct adapter *padapter = pLed->padapter; struct adapter *padapter = pLed->padapter;
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped)) if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
return; return;
schedule_work(&pLed->BlinkWorkItem); schedule_work(&pLed->BlinkWorkItem);
...@@ -460,7 +460,7 @@ void BlinkHandler(struct LED_871x *pLed) ...@@ -460,7 +460,7 @@ void BlinkHandler(struct LED_871x *pLed)
{ {
struct adapter *padapter = pLed->padapter; struct adapter *padapter = pLed->padapter;
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped)) if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
return; return;
SwLedBlink1(pLed); SwLedBlink1(pLed);
...@@ -468,8 +468,8 @@ void BlinkHandler(struct LED_871x *pLed) ...@@ -468,8 +468,8 @@ void BlinkHandler(struct LED_871x *pLed)
void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction) void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction)
{ {
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped) || if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||
(!padapter->hw_init_completed)) !padapter->hw_init_completed)
return; return;
if ((padapter->pwrctrlpriv.rf_pwrstate != rf_on && if ((padapter->pwrctrlpriv.rf_pwrstate != rf_on &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment