Skip to contentSkip to conversation

staging: rtl8723bs: Delete two redundant condition branches

PATCH New Zhen Lei 1 participant 1 message May 10, 2021 Staging

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

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.

---
 drivers/staging/rtl8723bs/os_dep/os_intfs.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +0 -4
index 160f624612c778c..8bb9355d072b68d 100644
@@ -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