Skip to contentSkip to conversation

ath10k: kill static int max_delay

PATCH New Janusz Dziedzic 2 participants 2 messages Apr 24, 2013 – Apr 25, 2013 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath10k: kill static int max_delay

Kill not used max_delay variable

---
 drivers/net/wireless/ath/ath10k/pci.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/wireless/ath/ath10k/pci.c +0 -4
index 40ca6d3..861da39 100644
@@ -431,7 +431,6 @@ void ath10k_do_pci_wake(struct ath10k *ar)
 {
 	struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
 	void __iomem *pci_addr = ar_pci->mem;
-	static int max_delay;
 	int tot_delay = 0;
 	int curr_delay = 5;
 
@@ -460,9 +459,6 @@ void ath10k_do_pci_wake(struct ath10k *ar)
 		if (curr_delay < 50)
 			curr_delay += 5;
 	}
-
-	if (tot_delay > max_delay)
-		max_delay = tot_delay;
 }
 
 void ath10k_do_pci_sleep(struct ath10k *ar)
Signature · 1 line
1.7.9.5