]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: simplify if-else blocks in rtw_mlme_ext.c
authorAndrei Khomenkov <khomenkov@mailbox.org>
Sun, 10 May 2026 13:43:15 +0000 (16:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 08:13:24 +0000 (10:13 +0200)
Fix indentation, remove unnecessary braces, and wrap long lines
in if-else blocks inside the site_survey function.

Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260510134315.64295-10-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 7ac23ccb39f707d9a0e2a5f0499de2ef89adb747..2667adc30b008aa5c324d0531d2cb2cfc1396cc8 100644 (file)
@@ -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... */
                        {