Return-path: Received: from mail-pf0-f179.google.com ([209.85.192.179]:34470 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbcCRCXA (ORCPT ); Thu, 17 Mar 2016 22:23:00 -0400 Received: by mail-pf0-f179.google.com with SMTP id x3so145814193pfb.1 for ; Thu, 17 Mar 2016 19:23:00 -0700 (PDT) From: Julian Calaby To: Kalle Valo Cc: QCA ath9k Development , Oleksij Rempel , Markus Elfring , Alexander Tsoy , linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org Subject: [PATCH 06/19] ath9k_htc: Delete unnecessary variable initialisation Date: Fri, 18 Mar 2016 13:22:52 +1100 Message-Id: (sfid-20160318_032304_292068_A1272EA1) In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Markus Elfring In ath9k_hif_usb_rx_stream(), i is initialised in the for loop it's used in. Signed-off-by: Markus Elfring Reviewed-by: Oleksij Rempel [Rewrote commit message] Signed-off-by: Julian Calaby --- drivers/net/wireless/ath/ath9k/hif_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index 8cbf490..e1c338c 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -527,7 +527,7 @@ static void ath9k_hif_usb_rx_stream(struct hif_device_usb *hif_dev, struct sk_buff *skb) { struct sk_buff *nskb, *skb_pool[MAX_PKT_NUM_IN_TRANSFER]; - int index = 0, i = 0, len = skb->len; + int index = 0, i, len = skb->len; int rx_remain_len, rx_pkt_len; u16 pool_index = 0; u8 *ptr; -- 2.7.0