Skip to contentSkip to conversation

ath10k: sdio: remove unused struct member

PATCH In review Erik Stromdahl 2 participants 2 messages Aug 23, 2017 – Aug 31, 2017 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath10k: sdio: remove unused struct member

irq_wq in struct ath10k_sdio is a remnant from an earlier version of the sdio patchset.

Its use was removed as a result of Kalle's review, but somehow the struct member survived.

It is not used and can therefore safely be removed.

---
V2: Fix typo in commit log (It's -> Its)

---
 drivers/net/wireless/ath/ath10k/sdio.c | 4 ----
 drivers/net/wireless/ath/ath10k/sdio.h | 2 --
 2 files changed, 6 deletions(-)
drivers/net/wireless/ath/ath10k/sdio.c +0 -4
index 48268f0..03a69e5 100644
@@ -1344,8 +1344,6 @@ static void ath10k_sdio_irq_handler(struct sdio_func *func)
 
 	sdio_claim_host(ar_sdio->func);
 
-	wake_up(&ar_sdio->irq_wq);
-
 	if (ret && ret != -ECANCELED)
 		ath10k_warn(ar, "failed to process pending SDIO interrupts: %d\n",
 			    ret);
@@ -2000,8 +1998,6 @@ static int ath10k_sdio_probe(struct sdio_func *func,
 		goto err_free_bmi_buf;
 	}
 
-	init_waitqueue_head(&ar_sdio->irq_wq);
-
 	for (i = 0; i < ATH10K_SDIO_BUS_REQUEST_MAX_NUM; i++)
 		ath10k_sdio_free_bus_req(ar, &ar_sdio->bus_req[i]);
 
drivers/net/wireless/ath/ath10k/sdio.h +0 -2
index 3f61c67..4ff7b54 100644
@@ -210,8 +210,6 @@ struct ath10k_sdio {
 	/* temporary buffer for BMI requests */
 	u8 *bmi_buf;
 
-	wait_queue_head_t irq_wq;
-
 	bool is_disabled;
 
 	struct workqueue_struct *workqueue;
Signature · 1 line
2.7.4
#1 lore raw
Quoted 10 lines · Erik Stromdahl

irq_wq in struct ath10k_sdio is a remnant from an earlier version of the sdio patchset.

Its use was removed as a result of Kalle's review, but somehow the struct member survived.

It is not used and can therefore safely be removed.

Patch applied to ath-next branch of ath.git, thanks.

30b83fff6d97 ath10k: sdio: remove unused struct member

Signature · 3 lines
https://patchwork.kernel.org/patch/9918195/

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