ath11k: mac: fix too long line
authorKalle Valo <quic_kvalo@quicinc.com>
Wed, 4 May 2022 06:00:43 +0000 (09:00 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 6 May 2022 06:16:56 +0000 (09:16 +0300)
checkpatch warns:

drivers/net/wireless/ath/ath11k/mac.c:7760: line length of 91 exceeds 90 columns

This was introduced by commit 046d2e7c50e3 ("mac80211: prepare sta handling for
MLO support").

Compile tested only.

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220503060415.24499-1-kvalo@kernel.org
drivers/net/wireless/ath/ath11k/mac.c

index 1957e17..df15fa4 100644 (file)
@@ -7741,6 +7741,7 @@ ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_b
        bool he_fixed_rate = false, vht_fixed_rate = false;
        struct ath11k_peer *peer, *tmp;
        const u16 *vht_mcs_mask, *he_mcs_mask;
+       struct ieee80211_link_sta *deflink;
        u8 vht_nss, he_nss;
        bool ret = true;
 
@@ -7763,13 +7764,16 @@ ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_b
        spin_lock_bh(&ar->ab->base_lock);
        list_for_each_entry_safe(peer, tmp, &ar->ab->peers, list) {
                if (peer->sta) {
-                       if (vht_fixed_rate && (!peer->sta->deflink.vht_cap.vht_supported ||
-                                              peer->sta->deflink.rx_nss < vht_nss)) {
+                       deflink = &peer->sta->deflink;
+
+                       if (vht_fixed_rate && (!deflink->vht_cap.vht_supported ||
+                                              deflink->rx_nss < vht_nss)) {
                                ret = false;
                                goto out;
                        }
-                       if (he_fixed_rate && (!peer->sta->deflink.he_cap.has_he ||
-                                             peer->sta->deflink.rx_nss < he_nss)) {
+
+                       if (he_fixed_rate && (!deflink->he_cap.has_he ||
+                                             deflink->rx_nss < he_nss)) {
                                ret = false;
                                goto out;
                        }