diff options
| author | Andrei Khomenkov <khomenkov@mailbox.org> | 2026-05-10 16:43:15 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-11 10:13:24 +0200 |
| commit | 3a7def187dcd8b004c99dc00b7b8e40072eefe7e (patch) | |
| tree | 4bdf1aff38ffc37b9017822609d2a832dcc70a3d | |
| parent | acda662a0aa3c4f8bd6f1820b7c08ef0ebd501b9 (diff) | |
| download | linux-3a7def187dcd8b004c99dc00b7b8e40072eefe7e.tar.gz linux-3a7def187dcd8b004c99dc00b7b8e40072eefe7e.zip | |
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 <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260510134315.64295-10-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 10 |
1 files changed, 5 insertions, 5 deletions
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... */ { |
