Commit 1cd3acd4 authored by Zhen Lei's avatar Zhen Lei Committed by Greg Kroah-Hartman
Browse files

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210510084901.3421-1-thunder.leizhen@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b11e893
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1189,8 +1189,6 @@ void 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);

@@ -1272,8 +1270,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);
	}