]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
wifi: wilc1000: fix declarations ordering
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Fri, 5 Jan 2024 07:57:32 +0000 (08:57 +0100)
committerKalle Valo <kvalo@kernel.org>
Fri, 12 Jan 2024 17:09:39 +0000 (19:09 +0200)
Reorder parameters declaration in wilc_parse_join_bss_param to enforce
reverse christmas tree

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240105075733.36331-2-alexis.lothore@bootlin.com
drivers/net/wireless/microchip/wilc1000/hif.c

index 839f142663e8646bbcc85498a2e1123640ec5ac6..6f1218a510610c358e986ce775b818d2179dc65e 100644 (file)
@@ -377,13 +377,13 @@ struct wilc_join_bss_param *
 wilc_parse_join_bss_param(struct cfg80211_bss *bss,
                          struct cfg80211_crypto_settings *crypto)
 {
-       struct wilc_join_bss_param *param;
-       struct ieee80211_p2p_noa_attr noa_attr;
-       u8 rates_len = 0;
+       const struct cfg80211_bss_ies *ies = rcu_dereference(bss->ies);
        const u8 *tim_elm, *ssid_elm, *rates_ie, *supp_rates_ie;
        const u8 *ht_ie, *wpa_ie, *wmm_ie, *rsn_ie;
+       struct ieee80211_p2p_noa_attr noa_attr;
+       struct wilc_join_bss_param *param;
+       u8 rates_len = 0;
        int ret;
-       const struct cfg80211_bss_ies *ies = rcu_dereference(bss->ies);
 
        param = kzalloc(sizeof(*param), GFP_KERNEL);
        if (!param)