mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00585495c4
commit
ccfe34c01c
1 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ static void BlinkTimerCallback(struct timer_list *t)
|
|||
struct LED_871x *pLed = from_timer(pLed, t, BlinkTimer);
|
||||
struct adapter *padapter = pLed->padapter;
|
||||
|
||||
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return;
|
||||
|
||||
schedule_work(&pLed->BlinkWorkItem);
|
||||
|
|
@ -460,7 +460,7 @@ void BlinkHandler(struct LED_871x *pLed)
|
|||
{
|
||||
struct adapter *padapter = pLed->padapter;
|
||||
|
||||
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return;
|
||||
|
||||
SwLedBlink1(pLed);
|
||||
|
|
@ -468,8 +468,8 @@ void BlinkHandler(struct LED_871x *pLed)
|
|||
|
||||
void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction)
|
||||
{
|
||||
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped) ||
|
||||
(!padapter->hw_init_completed))
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||
|
||||
!padapter->hw_init_completed)
|
||||
return;
|
||||
|
||||
if ((padapter->pwrctrlpriv.rf_pwrstate != rf_on &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue