From patchwork Fri Jul 28 06:19:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 127352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp237247vqg; Thu, 27 Jul 2023 23:40:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1K/JbYN42PAMDN2G1RtDqg/FjVWhoo06wvo7//0OpHuol362yjJGPcwh2nwEfF+0eYYin X-Received: by 2002:a05:6e02:148f:b0:346:4f31:f0db with SMTP id n15-20020a056e02148f00b003464f31f0dbmr2634263ilk.26.1690526434808; Thu, 27 Jul 2023 23:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526434; cv=none; d=google.com; s=arc-20160816; b=LDzRYGn+g8GpysL3Rq+HDgXm4Nbe0AcBSS0cJFnaJmVEZukbHFYjXk6vx3DD5EyKCQ hwGIXdQ3lQgbTvVBq6sGtrjhlSNV2u+ewKJFFymgrc0GDJuOB7Dznal+fydAGHVc6Phy prixqFCPyYwmogi0Lh0lwpTJdnvE3MJmm0Y1Sy45beQF0HCYPy401q+3DCFhrtW4ZcAe Hz82YPXeKasWftFerjwHH+D4ukRxpYT5mD304gyXJeR7fYiOWYDxULQsTe1O4JqasVaK drWt7uYCf/IbINnSkxaaqoWUfCNUZecBkXvDTxvxqAaLoBra51zlpFuca6oHlMIoG/+9 SbfQ== 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:dkim-signature; bh=LJgoJcsYGim7LTkI77pzmFtkjI+VCA85pPdZixqKz+s=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=pnlhq6WwAeo1mvVtG/fhqHgzGBj/dltHhn6t0zJXWH85FShLq0wnGWVKnOZAiSqzra p5yfcQOSs5Kh/0b8iEtkNizKpMB6MlGxEKNS6d9xQ1Y0ASrUMcsUGySDgnY4C16pxEtu NiobYGpsBIQgx+5zzCv/AiE4eXonG8PIf3LZus+RusySzO/PLjn6vFqwLtRQO0DCx5Mm W+WFo4Qc5D8zsK8aTnuyv/6Qfv7daEUvjHBQw2q06gJyJAugLO0gmxY66KlgBHlUhp6h 8xIGrhY1o1ziS85m5qFqHR6Uk1cZ9rlyqw5Pu9Sc4ULKj/yx08F1jRzvjpgisjcf4HNQ Kepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=G8Z+ZVVi; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=tLmYe7Q8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot18-20020a17090b3b5200b0024e37ccb3fesi1346180pjb.68.2023.07.27.23.40.20; Thu, 27 Jul 2023 23:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=G8Z+ZVVi; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=tLmYe7Q8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233551AbjG1GT1 (ORCPT + 99 others); Fri, 28 Jul 2023 02:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233523AbjG1GTW (ORCPT ); Fri, 28 Jul 2023 02:19:22 -0400 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13861422A for ; Thu, 27 Jul 2023 23:18:51 -0700 (PDT) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 958371A8D1C; Fri, 28 Jul 2023 02:18:17 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=6wbE+b3eVTEl5JFy1TZ+bCkBE 90FAdLDnnQfs6Ey7sY=; b=G8Z+ZVVij1M3XZ0rIMkK8ocol0o91QC9ML6Z2DLsW XJmQbnZnDb9Tpi6dM2ozGQdbuk8IObeu1F/M2LhUPJifPDSjrtsxLHzwNGZVZBzk a8DRkDLSUcdTKbHHM27cse7RfqSNv3IcGS+lptyu+2anNqBeKg4agQZ4Z+QZJTzt KY= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 8E8B51A8D1A; Fri, 28 Jul 2023 02:18:17 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=KFf1g/fvlcjp5JfdzMMLkzLtnS8FfEMWtEw5UKL5ZrI=; b=tLmYe7Q80PjDg1EUPtwYw/vCj7vUVqbtezwG+ai0jTxZGY8bZZedeNLVwKkHnpY1nvlGQPRBQMvyLqCxa09CO31D8AyJlDJWfWVV8RHp6zncJrOrD3knpomPQhWardEY9NlAos95Q//TiAJFOmE3VF+3/E2j3thVsfDSneCPkDE= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 593231A8D13; Fri, 28 Jul 2023 02:18:15 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v4 4/5] Staging: rtl8192e: Rename function RxTsDeleteBA Date: Thu, 27 Jul 2023 23:19:29 -0700 Message-ID: <20230728061930.624540-5-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230728061930.624540-1-tdavies@darkphysics.net> References: <20230728061930.624540-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 8A62E264-2D0E-11EE-9A06-C65BE52EC81B-45285927!pb-smtp1.pobox.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772645446557414769 X-GMAIL-MSGID: 1772645446557414769 Rename function RxTsDeleteBA to rx_ts_delete_ba in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v4: Resending. git send-email failed to send patch #5. v3: Changed patch #5, Rename global function ResetBaEntry to rtllib_reset_ba_entry v2: Sent to mailing list via git send-email, patches are the same. drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 6538343ea44d..9662d75257ce 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -41,7 +41,7 @@ static u8 tx_ts_delete_ba(struct rtllib_device *ieee, struct tx_ts_record *pTxTs return bSendDELBA; } -static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) +static u8 rx_ts_delete_ba(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) { struct ba_record *pBa = &pRxTs->rx_admitted_ba_record; u8 bSendDELBA = false; @@ -441,7 +441,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) return -1; } - RxTsDeleteBA(ieee, pRxTs); + rx_ts_delete_ba(ieee, pRxTs); } else { struct tx_ts_record *pTxTs; @@ -501,7 +501,7 @@ void TsInitDelBA(struct rtllib_device *ieee, } else if (TxRxSelect == RX_DIR) { struct rx_ts_record *pRxTs = (struct rx_ts_record *)pTsCommonInfo; - if (RxTsDeleteBA(ieee, pRxTs)) + if (rx_ts_delete_ba(ieee, pRxTs)) rtllib_send_DELBA(ieee, pTsCommonInfo->Addr, &pRxTs->rx_admitted_ba_record, TxRxSelect, DELBA_REASON_END_BA); @@ -537,7 +537,7 @@ void RxBaInactTimeout(struct timer_list *t) struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]); - RxTsDeleteBA(ieee, pRxTs); + rx_ts_delete_ba(ieee, pRxTs); rtllib_send_DELBA(ieee, pRxTs->ts_common_info.Addr, &pRxTs->rx_admitted_ba_record, RX_DIR, DELBA_REASON_TIMEOUT);