staging: rtl8723bs: Delete two redundant condition branches
PATCH 1/1 staging: rtl8723bs: Delete two redundant condition branches
The statement of the "if (check_fwstate(pmlmepriv, WIFI_AP_STATE))" branch is the same as the "else" branch. Delete it to simplify code.
No functional change.
Signed-off-by Zhen Lei <[email protected]>
--- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +0 -4
@@ -1192,8 +1192,6 @@ int rtw_suspend_common(struct adapter *padapter)if (check_fwstate (pmlmepriv,WIFI_STATION_STATE ))rtw_suspend_normal (padapter); -else if (check_fwstate (pmlmepriv,WIFI_AP_STATE )) -rtw_suspend_normal (padapter);else rtw_suspend_normal (padapter);
@@ -1275,8 +1273,6 @@ int rtw_resume_common(struct adapter *padapter)if (check_fwstate (pmlmepriv,WIFI_STATION_STATE )) {rtw_resume_process_normal (padapter); - }else if (check_fwstate (pmlmepriv,WIFI_AP_STATE )) { -rtw_resume_process_normal (padapter); }else {rtw_resume_process_normal (padapter); }
Signature · 1 line
2.26.0.106.g9fadedd