From: Zhen Lei Date: Mon, 10 May 2021 08:49:01 +0000 (+0800) Subject: staging: rtl8723bs: Delete two redundant condition branches X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1cd3acd4e9cf7a74ede532eadd71d7d6e9d27987;p=linux.git 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 Link: https://lore.kernel.org/r/20210510084901.3421-1-thunder.leizhen@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 1988f666228d7..213ec5b4ce98b 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -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); }