From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 10/10] staging: rtl8192e: Remove unused variables ForcedAMSDUMaxSize, ...
Date: Sun, 25 Sep 2022 00:04:19 +0200 [thread overview]
Message-ID: <0f3e63030511f72dbadc0368fd5e2dbd3ff84e07.1664055213.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1664055213.git.philipp.g.hortmann@gmail.com>
Remove unused variables that are may just once written but never read
ForcedAMSDUMaxSize, PeerBandwidth, SwBwStep, bIsPeerBcm and
bAcceptAddbaReq to avoid CamelCase which is not accepted by checkpatch.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtl819x_HT.h | 11 -----------
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ----
2 files changed, 15 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h
index 3d5dc60d2912..76bc9c5a6d83 100644
--- a/drivers/staging/rtl8192e/rtl819x_HT.h
+++ b/drivers/staging/rtl8192e/rtl819x_HT.h
@@ -138,8 +138,6 @@ struct rt_hi_throughput {
u8 forced_mpdu_density;
enum ht_aggre_mode ForcedAMSDUMode;
- u16 ForcedAMSDUMaxSize;
-
u8 forced_short_gi;
u8 current_op_mode;
@@ -149,11 +147,7 @@ struct rt_hi_throughput {
enum ht_extchnl_offset CurSTAExtChnlOffset;
u8 cur_tx_bw40mhz;
- u8 PeerBandwidth;
-
u8 sw_bw_in_progress;
- u8 SwBwStep;
-
u8 reg_rt2rt_aggregation;
u8 RT2RT_HT_Mode;
u8 current_rt2rt_aggregation;
@@ -165,17 +159,12 @@ struct rt_hi_throughput {
u8 rx_reorder_win_size;
u8 rx_reorder_pending_time;
u16 rx_reorder_drop_counter;
-
- u8 bIsPeerBcm;
-
u8 IOTPeer;
u32 iot_action;
u8 iot_ra_func;
u8 bWAIotBroadcom;
u8 WAIotTH;
-
- u8 bAcceptAddbaReq;
} __packed;
struct bss_ht {
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index a038a8c1504f..4a3bd49ce81a 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -70,9 +70,6 @@ static u8 LINKSYS_MARVELL_4400N[3] = {0x00, 0x14, 0xa4};
void HTUpdateDefaultSetting(struct rtllib_device *ieee)
{
struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
-
- pHTInfo->bAcceptAddbaReq = 1;
-
pHTInfo->bRegShortGI20MHz = 1;
pHTInfo->bRegShortGI40MHz = 1;
@@ -603,7 +600,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
if (pHTInfo->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) {
pHTInfo->bCurrentAMPDUEnable = false;
pHTInfo->ForcedAMSDUMode = HT_AGG_FORCE_ENABLE;
- pHTInfo->ForcedAMSDUMaxSize = 7935;
}
pHTInfo->cur_rx_reorder_enable = pHTInfo->reg_rx_reorder_enable;
--
2.37.3
next prev parent reply other threads:[~2022-09-24 22:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-24 22:02 [PATCH 00/10] staging: rtl8192e: Rename and remove variables in rtl819x_HTProc.c Philipp Hortmann
2022-09-24 22:03 ` [PATCH 01/10] staging: rtl8192e: Rename eRFPowerState, eRfOff and eRfOn Philipp Hortmann
2022-09-24 22:03 ` [PATCH 02/10] staging: rtl8192e: Rename eRfSleep, eRfPowerStateToSet and RfOffReason Philipp Hortmann
2022-09-24 22:03 ` [PATCH 03/10] staging: rtl8192e: Rename dot11Cur..., bCurTxBW40MHz and bCurrentRT2 Philipp Hortmann
2022-09-24 22:03 ` [PATCH 04/10] staging: rtl8192e: Rename bSwBwInPro..., bRegRT2RTAg... and bCurrentRT Philipp Hortmann
2022-09-24 22:03 ` [PATCH 05/10] staging: rtl8192e: Rename szRT2RTAggBuffer, bRegRxRe... and bCurRxReo Philipp Hortmann
2022-09-24 22:03 ` [PATCH 06/10] staging: rtl8192e: Rename RxRe...WinSize, RxReorder... and RxReorderDr Philipp Hortmann
2022-09-24 22:03 ` [PATCH 07/10] staging: rtl8192e: Rename PeerMimoPs, IOTAction and IOTRaFunc Philipp Hortmann
2022-09-24 22:04 ` [PATCH 08/10] staging: rtl8192e: Rename SelfMimoPs, CurrentOpMode and bForcedShortGI Philipp Hortmann
2022-09-24 22:04 ` [PATCH 09/10] staging: rtl8192e: Rename CurrentMPDU..., ForcedAMPDU... and ForcedMPDU Philipp Hortmann
2022-09-24 22:04 ` Philipp Hortmann [this message]
2022-09-26 9:24 ` [PATCH 00/10] staging: rtl8192e: Rename and remove variables in rtl819x_HTProc.c Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0f3e63030511f72dbadc0368fd5e2dbd3ff84e07.1664055213.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).