Skip to contentSkip to conversation

ath11k: fix compile warning in dp_tx.c

PATCH In review Miles Hu 2 participants 2 messages May 9, 2019 – May 13, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore

Miles Hu

author
#0 lore raw

PATCH 1/1 ath11k: fix compile warning in dp_tx.c

Remove lmac_ring_id_offset variable declaration to eliminate warning below:

drivers/net/wireless/ath/ath11k/dp_tx.c: In function 'ath11k_dp_htt_srng_setup':
drivers/net/wireless/ath/ath11k/dp_tx.c:615:6: warning: unused variable 'lmac_ring_id_offset' [-Wunused-variable]

---
 drivers/net/wireless/ath/ath11k/dp_tx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_tx.c +0 -1
index 624e4e9..55a19a0 100644
@@ -612,7 +612,6 @@ int ath11k_dp_htt_srng_setup(struct ath11k_base *ab, u32 ring_id,
 	u32 ring_entry_sz;
 	int len = sizeof(*cmd);
 	dma_addr_t hp_addr, tp_addr;
-	int lmac_ring_id_offset;
 	enum htt_srng_ring_type htt_ring_type;
 	enum htt_srng_ring_id htt_ring_id;
 	int ret = 0;
Signature · 7 lines
2.7.4


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 9 lines · Miles Hu

Remove lmac_ring_id_offset variable declaration to eliminate warning below:

drivers/net/wireless/ath/ath11k/dp_tx.c: In function 'ath11k_dp_htt_srng_setup':
drivers/net/wireless/ath/ath11k/dp_tx.c:615:6: warning: unused variable 'lmac_ring_id_offset' [-Wunused-variable]

Patch applied to ath.git, thanks.

1de770f77e27 ath11k: fix compile warning in dp_tx.c

Signature · 9 lines
https://patchwork.kernel.org/patch/10937355/

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


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k