Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8161677rdb; Thu, 4 Jan 2024 23:58:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNmqEp3HrefH3l8An7sqrfkeP5S5b2bavZ1bPfmcQfdt7bOONDqNmg8+P5EqDGRZK2cU8N X-Received: by 2002:a05:6512:230d:b0:50e:b500:9aea with SMTP id o13-20020a056512230d00b0050eb5009aeamr62326lfu.121.1704441482306; Thu, 04 Jan 2024 23:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704441482; cv=none; d=google.com; s=arc-20160816; b=jPc3m8U0IFzNamg+mvWsCnTiyvXYWXhWeLC9s8Vfb4KgRzSiyvfSKg6XkzaPsfQOWk k+Tx+4abRvsU3mpEM7CUf5k2KBAbj0k0wsL9o8UiIDN5/ovyVnyT5aVAV8pbN/FDTqab sJePVuJHPjn4iEBJ0FgKYDiUEGu8KKj0IKGw7rwnvwwqaPpC5IyQQqEhlcHgHvrphcdO nSSmMN2XnLhEbGU0yeLInlJ88GOtJ+6462ueuQPKUIdHD6gHBhEwhbTFss5l9oGRn8pq r9A6a71l3cEs5kdF3RzVdID23sQYBm2RExshlkMrGGPBskxYOLN/9oy4joyWcAeQYsNm VMaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vETB9SCIDuVDGSrkQ9WlcAEcxXERlPRayBqSURjaHwE=; fh=mPOs/O0IEcyTN5lQh0bkCejGHB03ivjM6E6P227s3/I=; b=xmNCopjWXZVUThcZ4MhAARqmiqSf0dbCAYBZQESngl04RHe0MOu+r+qbYZNkPEXRxo tNFjpZ8WYC2Kr6QI0TZxXTq2cxjU38cJVJhkNeIiBF9+d4vY40fY5BK8RdlHjyutjbPj 4+wQRZDy3ghi1upzRuBxH6bwAqby/y1Lga4/JWmGSIQcKrS6iSSbq8BLRk26wZ5DdvZw ZaDF+bnbctfPrX4hXATYD2aiPe2QkeebE8RTvCz8R/lEmRMdmJty9ZWuVBD/SV5u/fWa zbKtXohwsOxQQ4MKCBWNoFrCBadNt2DPwhgwOY9lfxdzISyAfEvU5d0iEZ4ycFuNTF17 +KOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dsNZ2PfG; spf=pass (google.com: domain of linux-wireless+bounces-1520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gj14-20020a170907740e00b00a27e113a5afsi395686ejc.37.2024.01.04.23.58.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 23:58:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dsNZ2PfG; spf=pass (google.com: domain of linux-wireless+bounces-1520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0FE181F22E23 for ; Fri, 5 Jan 2024 07:58:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 852D51F951; Fri, 5 Jan 2024 07:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dsNZ2PfG" X-Original-To: linux-wireless@vger.kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9671920B3B; Fri, 5 Jan 2024 07:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C4C61BF209; Fri, 5 Jan 2024 07:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1704441468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vETB9SCIDuVDGSrkQ9WlcAEcxXERlPRayBqSURjaHwE=; b=dsNZ2PfGzNN8p+eGkRnyCW4jPps8qzs2N5SyF/9mL82jdn2ioQNYL/nmrAk6UDw0uGVQNh wRdVyIzvBHYVjlppcRi44+xZ5tKWAqh/4crzXcj1NfdxVulljIG3apJZnub3TMHf2YfNnA T9f432o2OilMHR8LfeTEYSDSFomtdk210WsK6puKl8dI8dMPPgcIYGnTGZnQ+K+6C3eHfk QPsGqxbfsEbcdnEF2AGPzH1+8rNp3bo9SfjzLFV5QNDfRyRWxSjOVUMvqKS8BLP85h3I5J Xv8ssZROlk9gzOq14XOKUSbZuIAaQ0/yRS/pfXbbIuIOeWLT2i4alkbLZLbCPA== From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= To: linux-wireless@vger.kernel.org Cc: Ajay Singh , Claudiu Beznea , Kalle Valo , Thomas Petazzoni , linux-kernel@vger.kernel.org, Christophe JAILLET Subject: [PATCH v2 1/2] wifi: wilc1000: fix declarations ordering Date: Fri, 5 Jan 2024 08:57:32 +0100 Message-ID: <20240105075733.36331-2-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240105075733.36331-1-alexis.lothore@bootlin.com> References: <20240105075733.36331-1-alexis.lothore@bootlin.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: alexis.lothore@bootlin.com From: Alexis Lothoré Reorder parameters declaration in wilc_parse_join_bss_param to enforce reverse christmas tree Signed-off-by: Alexis Lothoré --- drivers/net/wireless/microchip/wilc1000/hif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index 839f142663e8..6f1218a51061 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -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) -- 2.42.1