net: wireless: rockchip_wlan: add rtl8723bs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / hal / rtl8723b / sdio / rtl8723bs_led.c
old mode 100755 (executable)
new mode 100644 (file)
index 26aeebb..c5ce3d1
@@ -47,10 +47,8 @@ SwLedOn_8723BS(
        u8      LedCfg;\r
        HAL_DATA_TYPE   *pHalData = GET_HAL_DATA(padapter);\r
 \r
-       if( (padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))\r
-       {\r
+       if (RTW_CANNOT_RUN(padapter))\r
                return;\r
-       }\r
 \r
        pLed->bLedOn = _TRUE;\r
 \r
@@ -70,10 +68,8 @@ SwLedOff_8723BS(
        u8      LedCfg;\r
        HAL_DATA_TYPE   *pHalData = GET_HAL_DATA(padapter);\r
 \r
-       if((padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))\r
-       {\r
+       if (RTW_CANNOT_RUN(padapter))\r
                goto exit;\r
-       }\r
 \r
 exit:\r
        pLed->bLedOn = _FALSE;\r