aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-11 08:32:19 -0400
committerKalle Valo <kvalo@codeaurora.org>2018-10-01 10:08:34 -0400
commitec95e84c39554737404047c36b3c76855a831a3e (patch)
tree795d7a8f8ae4b9444b3540fe778bdd72f2ac593f /drivers/net/wireless/ath
parentb8f3d16351034a7d3c25accc58d64ded9e1a03f9 (diff)
wil6210: remove set but not used variable 'start'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/ath/wil6210/pm.c: In function 'wil_suspend_keep_radio_on': drivers/net/wireless/ath/wil6210/pm.c:193:16: warning: variable 'start' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/wil6210/pm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/wil6210/pm.c b/drivers/net/wireless/ath/wil6210/pm.c
index 3a4194779ddf..75fe9323547c 100644
--- a/drivers/net/wireless/ath/wil6210/pm.c
+++ b/drivers/net/wireless/ath/wil6210/pm.c
@@ -190,7 +190,7 @@ out:
190static int wil_suspend_keep_radio_on(struct wil6210_priv *wil) 190static int wil_suspend_keep_radio_on(struct wil6210_priv *wil)
191{ 191{
192 int rc = 0; 192 int rc = 0;
193 unsigned long start, data_comp_to; 193 unsigned long data_comp_to;
194 194
195 wil_dbg_pm(wil, "suspend keep radio on\n"); 195 wil_dbg_pm(wil, "suspend keep radio on\n");
196 196
@@ -232,7 +232,6 @@ static int wil_suspend_keep_radio_on(struct wil6210_priv *wil)
232 } 232 }
233 233
234 /* Wait for completion of the pending RX packets */ 234 /* Wait for completion of the pending RX packets */
235 start = jiffies;
236 data_comp_to = jiffies + msecs_to_jiffies(WIL_DATA_COMPLETION_TO_MS); 235 data_comp_to = jiffies + msecs_to_jiffies(WIL_DATA_COMPLETION_TO_MS);
237 if (test_bit(wil_status_napi_en, wil->status)) { 236 if (test_bit(wil_status_napi_en, wil->status)) {
238 while (!wil->txrx_ops.is_rx_idle(wil)) { 237 while (!wil->txrx_ops.is_rx_idle(wil)) {