From: Sujith Manoharan Date: Sun, 28 Apr 2013 21:01:31 +0530 Subject: [ath9k-devel] [PATCH 13/20] ath10k: Remove unused variable in processing credit report In-Reply-To: <1367163098-22787-1-git-send-email-sujith@msujith.org> References: <1367163098-22787-1-git-send-email-sujith@msujith.org> Message-ID: <1367163098-22787-13-git-send-email-sujith@msujith.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org From: Sujith Manoharan Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k/htc.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index 381e0e8..f820059 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -379,9 +379,7 @@ static void ath10k_htc_process_credit_report(struct ath10k_htc *htc, enum ath10k_htc_ep_id eid) { struct ath10k_htc_ep *ep; - int total_credits = 0; - int n_reports; - int i; + int i, n_reports; if (len % sizeof(*report)) ath10k_warn("Uneven credit report len %d", len); @@ -401,13 +399,8 @@ static void ath10k_htc_process_credit_report(struct ath10k_htc *htc, if (ep->tx_credits && !skb_queue_empty(&ep->tx_queue)) queue_work(htc->ar->workqueue, &ep->send_work); - - total_credits += report->credits; } spin_unlock_bh(&htc->tx_lock); - - ath10k_dbg(ATH10K_DBG_HTC, "report indicated %d credits total\n", - total_credits); } static int ath10k_htc_process_trailer(struct ath10k_htc *htc, -- 1.8.2.2