Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: 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.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230327151151.1771350-1-trix@redhat.com

authored by

Tom Rix and committed by
Kalle Valo
2f73f04b 5dbe1f8e

+1 -2
+1 -2
drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c
··· 845 845 u16 seq, start_seq = 0, bindex, index, mcl; 846 846 u8 mcs = 0; 847 847 bool ba_recd = false, ack_recd = false; 848 - u8 suc_mpdu = 0, tot_mpdu = 0; 848 + u8 tot_mpdu = 0; 849 849 uint supr_status; 850 850 bool retry = true; 851 851 u16 mimoantsel = 0; ··· 975 975 ieee80211_tx_status_irqsafe(wlc->pub->ieee_hw, 976 976 p); 977 977 ack_recd = true; 978 - suc_mpdu++; 979 978 } 980 979 } 981 980 /* either retransmit or send bar if ack not recd */