Skip to contentSkip to conversation

brcmsmac: ampdu: remove unused suc_mpdu variable

PATCH In review Tom Rix 3 participants 3 messages Mar 27, 2023 – Mar 31, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 brcmsmac: ampdu: remove unused suc_mpdu variable

clang with W=1 reports drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c:848:5: error: variable
'suc_mpdu' set but not used [-Werror,-Wunused-but-set-variable]

        u8 suc_mpdu = 0, tot_mpdu = 0;
           ^

This variable is not used so remove it.

---
 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c +1 -2
index 2631eb7569eb..e24228e60027 100644
@@ -845,7 +845,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
 	u16 seq, start_seq = 0, bindex, index, mcl;
 	u8 mcs = 0;
 	bool ba_recd = false, ack_recd = false;
-	u8 suc_mpdu = 0, tot_mpdu = 0;
+	u8 tot_mpdu = 0;
 	uint supr_status;
 	bool retry = true;
 	u16 mimoantsel = 0;
@@ -975,7 +975,6 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,
 				ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw,
 							    p);
 				ack_recd = true;
-				suc_mpdu++;
 			}
 		}
 		/* either retransmit or send bar if ack not recd */
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Tom Rix

clang with W=1 reports drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c:848:5: error: variable
'suc_mpdu' set but not used [-Werror,-Wunused-but-set-variable]

        u8 suc_mpdu = 0, tot_mpdu = 0;
           ^

This variable is not used so remove it.

#2 lore raw

Re: wifi: brcmsmac: ampdu: remove unused suc_mpdu variable

In reply to Tom Rix
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c:848:5: error: variable
'suc_mpdu' set but not used [-Werror,-Wunused-but-set-variable]

        u8 suc_mpdu = 0, tot_mpdu = 0;
           ^

This variable is not used so remove it.

Patch applied to wireless-next.git, thanks.

2f73f04b7f93 wifi: brcmsmac: ampdu: remove unused suc_mpdu variable

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches