From patchwork Fri Jan 5 07:57:32 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: 185257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6081020dyb; Thu, 4 Jan 2024 23:58:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IExOu7em/0LB8t/ktaoCIItQrxuT9afH9/p93UBaWrBXCBneWnR5/Tk9kO0SoSmfCBj2qJH X-Received: by 2002:a05:622a:8f:b0:429:75fb:670d with SMTP id o15-20020a05622a008f00b0042975fb670dmr989531qtw.69.1704441526594; Thu, 04 Jan 2024 23:58:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704441526; cv=none; d=google.com; s=arc-20160816; b=XDF8zXn/lP3Lh7fzxDuydFkjctGsd5W6K7+ZfpZJlUtiSM3o8UqpMuYaAw+HhNIb6n Mbdxd+5aIOAIW3hmtGpVDlh4afmou0ZvnNHMTxsCk3GwcXH4A9LPDD1ktYoydATO/rL3 OodoFWvhK8TCumsTn6ZXJ/rP7PbRxgyX0wQyQrMbz/1s8LgKuDq9vNMgpi5SNzE+9bdE 8/z/GbAJSrRClBmxyRDDkXixYOBZRQ0QtG9d1+NKsRzAjAQ6QNJZa5rCOzb7pyGJI6jb DwiXVy9rs3yZicaJjK9M5tOD7bjhJx4xalT/W0kHNeYKKO4fic80bFHg/n+CKWcPbHlm kT+w== 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=mh2X2IlQ1mZ2H7PMojDmqfruEMmyYZgWorujtW3ulqK1/ybLOdaIotzBZxnieulBSo nXrYXzuuom3FHi3KjRE6V5z6wug42dsMUHuH4XHfnlvhUO5uxRrAppH+MCjZ9R9PaplS SDBQSKeinc7BjWQbOqE0aVn9g0tCTxkp8JXlyh/N7o79MqK8Q6/3dRdsS19H9y3lNQfv eiicy4yTE+YbQ6xi2bV12DnjciuXRhxHZt7DyKBAMEolPXLKybvb8ljrMYYdwh/G0+Vm A/z/ms7f55rEErWTzOwhqUf+t01bZareM+7Ijby/lXQoZijXskUAFGegazlV4ysk+nnU iNtg== 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-kernel+bounces-17560-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17560-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y12-20020a05622a120c00b00423dccd9929si1224863qtx.495.2024.01.04.23.58.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 23:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17560-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dsNZ2PfG; spf=pass (google.com: domain of linux-kernel+bounces-17560-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17560-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 62A7C1C22B85 for ; Fri, 5 Jan 2024 07:58:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1628D224CF; Fri, 5 Jan 2024 07:57:55 +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-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 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_Lothor=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-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: 1787236477994285960 X-GMAIL-MSGID: 1787236477994285960 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)