From patchwork Fri Jan 1 18:23:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 7939861 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 2D14D9F387 for ; Fri, 1 Jan 2016 18:24:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5042C20412 for ; Fri, 1 Jan 2016 18:24:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 712D8203F7 for ; Fri, 1 Jan 2016 18:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbcAASXr (ORCPT ); Fri, 1 Jan 2016 13:23:47 -0500 Received: from mout.web.de ([212.227.17.12]:52085 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102AbcAASXp (ORCPT ); Fri, 1 Jan 2016 13:23:45 -0500 Received: from [192.168.1.2] ([77.182.63.9]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MORiL-1aIerp3TBF-005oDx; Fri, 01 Jan 2016 19:23:41 +0100 Subject: [PATCH 1/2] net-ath9k_htc: Delete an unnecessary variable initialisation in ath9k_hif_usb_rx_stream() To: ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, ath9k-devel@qca.qualcomm.com, Kalle Valo References: <566ABCD9.1060404@users.sourceforge.net> <5686C390.5060600@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <5686C42A.5000405@users.sourceforge.net> Date: Fri, 1 Jan 2016 19:23:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5686C390.5060600@users.sourceforge.net> X-Provags-ID: V03:K0:xBG6/FWwG5iA28tkEZn0auKM0/g4x6e5Z/6uH/tstFm0GSxjFod qikCcEfqqItu1NER5M5xO4/3u2LqZtAb7stR1tRdDPxgdTdDj13l5c555Imd8xPso3iPOd5 qHD3ApxWmeORA4Ep6TR1DjIP4ZnxWSExwaMQE75pzZCPYMJpd5g3irCQCJfcMa0sHMh6G33 icK58DWSEulzWUPWB42IQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:HPTZ9BjOWSI=:wcmxZUIXJKgFL8APalAV6L uLhChh7nyvaEcHzl+WRqXHsxV2gonFiO26t9rM/WRXeEsuT1RiRj+8Bm2OvmzwCYKp2hEECGx cxoN6bRLG1F8xW21ZESJteLmDPcoF0k2P5fi/dWeaflFepTWf271kJvRt6hQFEHTum20zjWMq etowlg+Jf2rw9Pr0PIV40Se9Zyoq7IM0JUp+rE1VgF6w/ZZkh8Gr0km6qvVHGOrinKMpcQIzJ QhZSopJqnyPmkg2Hyz5fWVkWPpFKUsGRKmDoWV4CLoPwx1sPQfpcvOIg6uL1GImysGSaF4tbi uGcaGN7pTdOnfQTafytjPysk18Sv/iYg01CjwX7Bcs3yHIY13NlnWFoq5JCbBiwknKPmU1jNy IuRrNxYd76bXYOcAIKpv17DhTT8V91B65uyjndICyHG7creaUxAsM2RJWH1lHOk0qnB7ivI8F LSIxXVcktKPgwBHr0vTgrxfSW86BHnjvABP3V41hsD7yBDQ3iWTXpdhO8y4GtGHsJ6EqLetBP p7PMMwEFRwf7hCcS4W98VzCKrvR6bVWtyw4uWxwomIxv5B9QLC7LdkMEL02HKUn5jtGBnpH6J 17PT/Kwml4coGuniCiOXC/DRPPUZwz6BAyfwbJ3fcDCc8NKq4QcOAkAuVwlm4UPlBTBbzOmUe hFXYtBvFK3ipQKlnic6lFE0F/C1diIKFtzEKWDGhEMTzLC/2Tuds8sBQmqrgjKBESqPwNRVrJ Avia9PZ4zZ8NCG+LZGtnLWUD35re0cDRWeFOj1dSsR8DtX8N5vqGILG7fY3iInGUJZ1JEi+GS Rtg57WR 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Date: Fri, 1 Jan 2016 19:00:53 +0100 Omit explicit initialisation at the beginning for one local variable that is redefined before its first use. Signed-off-by: Markus Elfring Reviewed-by: Oleksij Rempel --- 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 165dd20..51bd61b 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -525,7 +525,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;