From patchwork Fri Mar 18 02:22:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Calaby X-Patchwork-Id: 8615771 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3ED7E9F3D1 for ; Fri, 18 Mar 2016 02:23:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6996E20306 for ; Fri, 18 Mar 2016 02:23:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94644202FE for ; Fri, 18 Mar 2016 02:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751361AbcCRCXD (ORCPT ); Thu, 17 Mar 2016 22:23:03 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ofwpqC0wyA2wUGt2DcaImwsJcnFufa4DjJPIbbvoM8E=; b=bAGrtu6ym3r9wjkZUz+Zrg2VqLkSkHQnNbqC+QdLU2NY12DX3eTCL+UcqKK2dvVxdD saBNO5jgSWQNykxc+OkSWKNBIFhCpq53+KyqrSjic72chT2RyY2Aq9cOmzes8jDNgM7B bHqHYJcelWOmo6AURvwQJvIK/sn6rZKbSWVuB1oAdtZKCzHYJxRvZr7ttzn+tX8kN/l2 vdYSPsizbdW7p+O1hRJ1/qtkAMUCfdbvFHyE3wzE1LwuwOarGoQoarDlgCN4+b++MuOr 9XCxKPohe+pa/kWveEocBoTac6+saI0Jm2lAc1/sSnlVflcbN6+9l7KwOzj4GUVVCXri Qplw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ofwpqC0wyA2wUGt2DcaImwsJcnFufa4DjJPIbbvoM8E=; b=Mw5NkorRxHrR42K5kFFBajrnmTpSqKTF0NzOkw/dSEHwfskcBvt1qAQTnG45p+JXo5 /nSrxDyUw5dqlaGbaSwyBd2yqK6kTCeG6KiEdfqZOKNU4jaZmghlHASmi1EjCv2YXxh1 VrAfiseHyaHYe7gvHJS2IGZKb5e63kNjq1BNIjXUElmKN1//XU70KtgbWmpvzkN437FR ruXfVQYfYpqT06OuMAXBJHctuJDEFCojH8aLkM9LVeQtIpEzTRNFeUAHgnPw62xv9pn2 ou/ZcAjbJGW1B6B9EqYlo+yblU6ZbxvmkKgO0zy1f5evm8HmjmmesSG9uWMvp85S7Dbv Qn/A== X-Gm-Message-State: AD7BkJI7HndWL23SBqgQSZ8aJ2DkwykQ35VoB8EogRbhgpDnF0GEqHFXwxw7nmPRER5Ajg== X-Received: by 10.98.10.74 with SMTP id s71mr12487703pfi.86.1458267779951; Thu, 17 Mar 2016 19:22:59 -0700 (PDT) Received: from multimedia.lan (C-59-101-14-180.hay.connect.net.au. [59.101.14.180]) by smtp.gmail.com with ESMTPSA id i1sm16396148pfj.17.2016.03.17.19.22.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Mar 2016 19:22:59 -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: X-Mailer: git-send-email 2.7.0 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;