From: Andrei Khomenkov Date: Sun, 10 May 2026 13:43:15 +0000 (+0300) Subject: staging: rtl8723bs: simplify if-else blocks in rtw_mlme_ext.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7def187dcd8b004c99dc00b7b8e40072eefe7e;p=thirdparty%2Fkernel%2Fstable.git staging: rtl8723bs: simplify if-else blocks in rtw_mlme_ext.c Fix indentation, remove unnecessary braces, and wrap long lines in if-else blocks inside the site_survey function. Signed-off-by: Andrei Khomenkov Link: https://patch.msgid.link/20260510134315.64295-10-khomenkov@mailbox.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 7ac23ccb39f7..2667adc30b00 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -3741,11 +3741,11 @@ void site_survey(struct adapter *padapter) } if (survey_channel != 0) { - if (pmlmeext->sitesurvey_res.channel_idx == 0) { - set_channel_bwmode(padapter, survey_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20); - } else { - r8723bs_select_channel(padapter, survey_channel); - } + if (pmlmeext->sitesurvey_res.channel_idx == 0) + set_channel_bwmode(padapter, survey_channel, + HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20); + else + r8723bs_select_channel(padapter, survey_channel); if (ScanType == SCAN_ACTIVE) { /* obey the channel plan setting... */ {