From patchwork Thu Jan 4 14:39:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alexis_Lothor=C3=A9?= X-Patchwork-Id: 185026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5651292dyb; Thu, 4 Jan 2024 06:42:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPspyGEIBQf5Dq8Td7n7in+6hUe2pUfORulnQNh00S8hIjVdK7p9ZaTAq5PDGr5NN0NinW X-Received: by 2002:a17:906:19d6:b0:a28:e66d:6df0 with SMTP id h22-20020a17090619d600b00a28e66d6df0mr196290ejd.10.1704379339894; Thu, 04 Jan 2024 06:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704379339; cv=none; d=google.com; s=arc-20160816; b=z1zx5uApRYqPGTV06hw7NXYdom2WIPH5+KrbH74MeJaSaWxs9DWcdEyEz/Tppw2/Zu bN6fYRjE5EFFpcUs9U1xPgL64DCzzwKFN0gG9yXRh/ni6QD+m2k3lQtu1kTH92RBnEV3 RcRu9MaK61dA3LMxmYftg5IV5zWeeDDReBO7dfGF/M2Odd4Nf7/kbWHKE3EXT9kEOQYL hBiuYXaL8CnSVVyxybfe0RsuUayc28NzyR6jtGL5+bIANK5HBSw6rIPbuU/bot+2Av/Q IFmSR4ffC8vgl+Nhssl9ITrlRrCDV8qRSiKNS5C0LG0dclN3M1m6ld7bD70Zr7DFD1y2 KFcw== 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=ppmudv7yEhmWm8DtJQwxo4d1aAkZiUXkUHIF4M5Za9U=; b=ZaA1MrSjx8km0If020N5ute0CyfpF2iGy2zZ/wQdrOsEArLyvb7ClIXqmhEx3+ySjm qAUyi1kFOfNd7LABqbDb+GPq0r+BxDaboKa7Nm5l1EfLIds5juKWn9CzgVLcFNUpYu2z dzEPRerdGTGKfRWAoYSMdxVvPuidTvNwbYYw78zD5ep26Px6pEDhUw6Ky53+v+s3G22S RAteiSNLkI5PH5o4fRy1QXN/8eCdruEUittUZ0K+cEVInyhYQCY9odur3Q+UXnORBKnB SCaM/wedXRagN+rcQeXL2xVqjaHcxfisFzaaLQN8wxMtIzHKQz6abJmG6jWSP8q+R+lT RDAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WUz6nIe+; spf=pass (google.com: domain of linux-kernel+bounces-16799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16799-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lk19-20020a170906cb1300b00a26f040cb51si8467945ejb.790.2024.01.04.06.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 06:42:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WUz6nIe+; spf=pass (google.com: domain of linux-kernel+bounces-16799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16799-ouuuleilei=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 79AA31F222D3 for ; Thu, 4 Jan 2024 14:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 609DD24211; Thu, 4 Jan 2024 14:41:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="WUz6nIe+" X-Original-To: linux-kernel@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 9C5CB2374C; Thu, 4 Jan 2024 14:41:32 +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 7C4341BF208; Thu, 4 Jan 2024 14:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1704379284; 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=WUz6nIe+LTvvnMRfN1dUYBhXPnaR1o206wRcdTUR5NRqcDiLrUiSMSqjSxX5UBZYEgB44c AxtlyM0tw+JXDInOgA/YPjixckOIMm1Si99EeYoj83fXEdQbwFE1NwLk3jr7Wm9n1c0iFw aYP/vDi5SAplm1PZtbOf8vBU87pnIZTSG6NgcLTJSvNRDJGHHR3ppH9nEQovuIGs4B8y+i JHZzSqf2YDgrNBhCo94+f87q86DmolX6mrsX2Du4l2erwT2uMK0Z6f8MnmCYzwdX55HLjG CU+ICUFAdGO29haBqaA+hNe3o/m935uMjxJNQ8k1Xkjb/0nHRbXpCivdFEQ9Lw== From: =?utf-8?q?Alexis_Lothor=C3=A9?= To: linux-wireless@vger.kernel.org Cc: Ajay Singh , Claudiu Beznea , Kalle Valo , Thomas Petazzoni , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] wifi: wilc1000: fix declarations ordering Date: Thu, 4 Jan 2024 15:39:24 +0100 Message-ID: <20240104143925.194295-2-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240104143925.194295-1-alexis.lothore@bootlin.com> References: <20240104143925.194295-1-alexis.lothore@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: alexis.lothore@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787171270814658874 X-GMAIL-MSGID: 1787171270814658874 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)