Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2803569rdh; Sun, 26 Nov 2023 21:37:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXCSoXyrKpOwUrlRNAlsA+cPU4cgBHQnGCEfjP+6t+JEfsmJSeLchFLHwEQfO6V3QksroX X-Received: by 2002:a05:6871:6a2:b0:1fa:60b5:b31b with SMTP id l34-20020a05687106a200b001fa60b5b31bmr619780oao.45.1701063473000; Sun, 26 Nov 2023 21:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701063472; cv=none; d=google.com; s=arc-20160816; b=Ur8ky3txl/tCPlbtwyM9/3nOYe8GTv6ta9Y+iLIjBAisdzCqV7mpaC/BeGZ581sLM3 8uaZWbNRa1g50Aye2tA1+ruRAZRTVF0HOD1ToRdR8WFNnevra2Eeg56f/RTZ/joh844/ D9hefq5aBE+rG6SXdcez0JImt1gb+MGWwFY1/sdeXI+VJKHnYCAVykB/K2QhAZgNXXUg MlaVFUbhKP3tx4KV0TlisPuLbkXroofYBDfEh4B8WdwEgLo6UhDzsGpFDRH1tc8e6yHI bySuEVFW0NbYPWi6/C9Idybbc+F1LpYdh27BBVVnkIJCmilZ/5UGtmiOuNNPZDTuB8t2 8YTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wRGlPinq49hmId5T7GGWMwmGcH6Fr21H2t959wvL11c=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=qQxv0kWBHy4BeTkc8KVByv5GOY1YChIvcY3Yi0E+/dSjTSs+vXDsqs83brUs6gz3fM ASrlWgxjjspbUDy7+tmndTJ5ojMggp5nAG/4BBu866r7jn/7r59s9iz2S0+9CbzeUxxp JfF6EFQCwS3EAFW/sTJL2ojfcBzoUVlaRTfGeKU/IZzIasxu6nQ2Ty41p2pn3ByYLiQL LmKOLgLi3OzjxunQ0G3TawR9iZU+zQqsKxQE3OOcFa8r0NiytGwR/zTwnXOE98gL5+82 0SXt16BFQfBtIqajB93QsBxP/2q/FYKgTg6fpi5wJo+2WdNcmH+c5v2Fw04Dc4tdVOPM /beg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="d/D75T/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v7-20020a655c47000000b005859c255ce8si9226521pgr.819.2023.11.26.21.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:37:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="d/D75T/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D3683805A583; Sun, 26 Nov 2023 21:37:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbjK0FhB (ORCPT + 99 others); Mon, 27 Nov 2023 00:37:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbjK0Fgb (ORCPT ); Mon, 27 Nov 2023 00:36:31 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34A2A184 for ; Sun, 26 Nov 2023 21:36:31 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1cfc2d03b3aso4394025ad.1 for ; Sun, 26 Nov 2023 21:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1701063390; x=1701668190; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wRGlPinq49hmId5T7GGWMwmGcH6Fr21H2t959wvL11c=; b=d/D75T/q56Q6dYrAO3JsUFFmfV70GMi0AHg+PlgO/JxusdNcAH804t3HupoL0GR6Iz MFSDb2LyS2tMxJLRLPh6OfQi3y5BJu4KSczjcYGvzIKbsC5hOBCJybkjGKV7jIY9A3F1 Y5c+67C9bgNu7VyFoMr+DQDfs+v+MC3MGMgS8mETTpJnlRW3qOhdae+WeF6RevMd6tLZ 3XRYZYbAkz4lGh/lmhIBm6ASrCAiAQJsuPCybtHO8zC+zfabq2mYKRTgtRaxjFujtG1B HLICZn6KvSJ1K6F6Tnd/s9Bipm/JfytHQ4r59aHY67ynPXeA/rthQ5dSDcyAf81JeZH7 zqqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701063390; x=1701668190; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wRGlPinq49hmId5T7GGWMwmGcH6Fr21H2t959wvL11c=; b=VB0Np5RKfPcpRG9edjzDfhymIghqSMNy5aq91gvYZZFL4HtW8ailq9/HgFW0kttzm7 7O/+EkzoHl+Nb+dZsGOsgHsvPQD1FV2OO/1+xWPW04N7B30jdY1SSBq2dwZBfB5SNfoj b0osehwKs/Xn04wEGZ696RuNQiOVUObsPZF+7tp4ooqX/HrC7vNh2jCdxzX8AVv7eg34 /HOD99GG1WI3qNmqstVeFQpTGi8G93hcO9tjULCcuSHWYwd8R43oHmpllaze5hfrt/ox Ay7nKHy7I8GnYgmTq7B22VkgPPFOkrA/u6Ni7mnYvIgl/YTUfmHaDaYzbdWijxCqxLml ZHFg== X-Gm-Message-State: AOJu0YxckLZaUGQOaTWQBHW3On0ci+D77T6GOB5phizqH/EOn2QAK4tF aG62OMliXMxXgeADY+ZG87tc6Q== X-Received: by 2002:a17:903:1d2:b0:1cf:ad61:7a67 with SMTP id e18-20020a17090301d200b001cfad617a67mr8258718plh.32.1701063390670; Sun, 26 Nov 2023 21:36:30 -0800 (PST) Received: from basil.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id b6-20020a170902ed0600b001cc3875e658sm7300465pld.303.2023.11.26.21.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:36:30 -0800 (PST) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH 12/15] Staging: rtl8192e: Rename variable pBaParamSet Date: Sun, 26 Nov 2023 21:43:02 -0800 Message-ID: <20231127054305.148276-13-tdavies@darkphysics.net> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231127054305.148276-1-tdavies@darkphysics.net> References: <20231127054305.148276-1-tdavies@darkphysics.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 26 Nov 2023 21:37:50 -0800 (PST) Rename variable pBaParamSet to ba_param_set to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index bd037069d4f3..7074a01ad2e8 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -217,7 +217,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) u16 rc = 0; u8 *dst = NULL, *dialog_token = NULL, *tag = NULL; struct ba_record *ba = NULL; - union ba_param_set *pBaParamSet = NULL; + union ba_param_set *ba_param_set = NULL; u16 *pBaTimeoutVal = NULL; union sequence_control *pBaStartSeqCtrl = NULL; struct rx_ts_record *ts = NULL; @@ -239,7 +239,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) dst = (u8 *)(&req->addr2[0]); tag += sizeof(struct ieee80211_hdr_3addr); dialog_token = tag + 2; - pBaParamSet = (union ba_param_set *)(tag + 3); + ba_param_set = (union ba_param_set *)(tag + 3); pBaTimeoutVal = (u16 *)(tag + 5); pBaStartSeqCtrl = (union sequence_control *)(req + 7); @@ -254,14 +254,14 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) goto OnADDBAReq_Fail; } if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst, - (u8)(pBaParamSet->field.tid), RX_DIR, true)) { + (u8)(ba_param_set->field.tid), RX_DIR, true)) { rc = ADDBA_STATUS_REFUSED; netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__); goto OnADDBAReq_Fail; } ba = &ts->rx_admitted_ba_record; - if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) { + if (ba_param_set->field.ba_policy == BA_POLICY_DELAYED) { rc = ADDBA_STATUS_INVALID_PARAM; netdev_warn(ieee->dev, "%s(): BA Policy is not correct\n", __func__); @@ -272,7 +272,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) deactivate_ba_entry(ieee, ba); ba->dialog_token = *dialog_token; - ba->ba_param_set = *pBaParamSet; + ba->ba_param_set = *ba_param_set; ba->ba_timeout_value = *pBaTimeoutVal; ba->ba_start_seq_ctrl = *pBaStartSeqCtrl; @@ -291,7 +291,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) { struct ba_record BA; - BA.ba_param_set = *pBaParamSet; + BA.ba_param_set = *ba_param_set; BA.ba_timeout_value = *pBaTimeoutVal; BA.dialog_token = *dialog_token; BA.ba_param_set.field.ba_policy = BA_POLICY_IMMEDIATE; @@ -307,7 +307,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) struct tx_ts_record *ts = NULL; u8 *dst = NULL, *dialog_token = NULL, *tag = NULL; u16 *status_code = NULL, *pBaTimeoutVal = NULL; - union ba_param_set *pBaParamSet = NULL; + union ba_param_set *ba_param_set = NULL; u16 reason_code; if (skb->len < sizeof(struct ieee80211_hdr_3addr) + 9) { @@ -322,7 +322,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) tag += sizeof(struct ieee80211_hdr_3addr); dialog_token = tag + 2; status_code = (u16 *)(tag + 3); - pBaParamSet = (union ba_param_set *)(tag + 5); + ba_param_set = (union ba_param_set *)(tag + 5); pBaTimeoutVal = (u16 *)(tag + 7); if (!ieee->current_network.qos_data.active || @@ -338,7 +338,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) } if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst, - (u8)(pBaParamSet->field.tid), TX_DIR, false)) { + (u8)(ba_param_set->field.tid), TX_DIR, false)) { netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__); reason_code = DELBA_REASON_UNKNOWN_BA; goto OnADDBARsp_Reject; @@ -367,7 +367,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) } if (*status_code == ADDBA_STATUS_SUCCESS) { - if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) { + if (ba_param_set->field.ba_policy == BA_POLICY_DELAYED) { ts->add_ba_req_delayed = true; deactivate_ba_entry(ieee, pAdmittedBA); reason_code = DELBA_REASON_END_BA; @@ -377,7 +377,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pAdmittedBA->dialog_token = *dialog_token; pAdmittedBA->ba_timeout_value = *pBaTimeoutVal; pAdmittedBA->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; - pAdmittedBA->ba_param_set = *pBaParamSet; + pAdmittedBA->ba_param_set = *ba_param_set; deactivate_ba_entry(ieee, pAdmittedBA); activate_ba_entry(pAdmittedBA, *pBaTimeoutVal); } else { @@ -393,7 +393,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) { struct ba_record BA; - BA.ba_param_set = *pBaParamSet; + BA.ba_param_set = *ba_param_set; rtllib_send_DELBA(ieee, dst, &BA, TX_DIR, reason_code); return 0; } -- 2.39.2