mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
staging: rtl8723bs: rtw_mlme: wrap rtw_sitesurvey_cmd condition
Inline rtw_sitesurvey_cmd() directly in the if condition to reduce line length. Signed-off-by: Salman Alghamdi <me@cipherat.com> Reviewed-by: Luka Gejak <luka.gejak@linux.dev> Link: https://patch.msgid.link/20260513203611.31872-3-me@cipherat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
90cafd6b3c
commit
75ba9ce635
|
|
@ -733,9 +733,9 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
|||
rtw_indicate_connect(adapter);
|
||||
} else {
|
||||
if (rtw_to_roam(adapter) != 0) {
|
||||
if (rtw_dec_to_roam(adapter) == 0
|
||||
|| _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)
|
||||
) {
|
||||
if (rtw_dec_to_roam(adapter) == 0 ||
|
||||
rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid,
|
||||
1, NULL, 0) != _SUCCESS) {
|
||||
rtw_set_to_roam(adapter, 0);
|
||||
rtw_free_assoc_resources(adapter, 1);
|
||||
rtw_indicate_disconnect(adapter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user