]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: move logical operators to previous line
authorAndrei Khomenkov <khomenkov@mailbox.org>
Mon, 27 Apr 2026 17:58:44 +0000 (20:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:52:07 +0000 (16:52 +0200)
Move logical operators to the previous line to improve code
readability and conform to the Linux kernel coding style.
This fixes the LOGICAL_CONTINUATIONS issues identified by
checkpatch.pl.

Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260427175846.23470-7-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
drivers/staging/rtl8723bs/core/rtw_mlme.c
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index ebf0808f41046434a139f10740b3d4308f896da4..e5de66d00bec8748d959b1f1db1636946987aec0 100644 (file)
@@ -467,8 +467,8 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter)
        struct sta_info *psta = NULL;
        u8 short_GI = 0;
 
-       if (!check_fwstate(pmlmepriv, _FW_LINKED)
-               && !check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE))
+       if (!check_fwstate(pmlmepriv, _FW_LINKED) &&
+               !check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE))
                return 0;
 
        psta = rtw_get_stainfo(&adapter->stapriv, get_bssid(pmlmepriv));
index 14a6d0e2a3c16a04b9fb7a933db0bedc755973bf..3c4c7d9022957db1764b3228732b0f0f88a3a629 100644 (file)
@@ -1757,8 +1757,8 @@ static int rtw_check_join_candidate(struct mlme_priv *mlme
                goto exit;
 
        if (rtw_to_roam(adapter) > 0) {
-               if (jiffies_to_msecs(jiffies - competitor->last_scanned) >= mlme->roam_scanr_exp_ms
-                       || !is_same_ess(&competitor->network, &mlme->cur_network.network)
+               if (jiffies_to_msecs(jiffies - competitor->last_scanned) >= mlme->roam_scanr_exp_ms ||
+                       !is_same_ess(&competitor->network, &mlme->cur_network.network)
                )
                        goto exit;
        }
index 633a42b4a157423b8363b1e2d91abbc4a05ec1e4..9cc5199753c20d63daa67feba471bd0ead6df766 100644 (file)
@@ -899,8 +899,8 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct wireless_dev *wdev,
                        memcpy(param->sta_addr, mac_addr, ETH_ALEN);
 
                ret = rtw_cfg80211_ap_set_encryption(ndev, param, param_len);
-       } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)
-               || check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) {
+       } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) ||
+                  check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) {
                ret =  rtw_cfg80211_set_encryption(ndev, param, param_len);
        }