From patchwork Fri Feb 5 01:35:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8229971 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5B078BEEE5 for ; Fri, 5 Feb 2016 01:35:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 830112038E for ; Fri, 5 Feb 2016 01:35:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB62D202F2 for ; Fri, 5 Feb 2016 01:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751889AbcBEBfy (ORCPT ); Thu, 4 Feb 2016 20:35:54 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36682 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbcBEBfw (ORCPT ); Thu, 4 Feb 2016 20:35:52 -0500 Received: by mail-pf0-f175.google.com with SMTP id n128so59015248pfn.3 for ; Thu, 04 Feb 2016 17:35:52 -0800 (PST) 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=Xj7lrBIJdOi9/KG/rp2e3qSvfC3qGU1T5SoIijNFXMo=; b=BhH6sVLyPbfAuSPYhWwFVAcfrRwVdoUNDWLXKxwOf3XwuYW/n2OC6WS7pSMq6FsGrw gFOWSeUr56hP6298bn3HK22f1mfUJRcmpFkMNNMfnW+s2NDkbUs+sZOVTfuYav5JzMzj CFxKSl3j0vzRzKdBNRo5PFC2ZVaw2WHTqxQsICjryi37tqXAU6QJz8DJsCnVTDhT9DM6 qjo6vRXLY2kWtgau3dtjHq6/FuBUa5doU6Q8fJVrp/+piqbkryEYhXm9LuPK7jUROfBf pf16nKMDM7eeY35714Tu011vqPq4A29W0CYHu4mJ2+mLVt17rwJhP215XOfhXRdjXLsq L00Q== 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=Xj7lrBIJdOi9/KG/rp2e3qSvfC3qGU1T5SoIijNFXMo=; b=MX0wa4tSIbUbrRyRvLIeRLnDBtLO6IfhQkYYZ/L1rcEcukSsKQAYqt8K4vo8rV7NkO 8BbEbQTy8Q9bxcTWTJuDb/UUGEHeOiAnSbw47c9UcvxSSRqWqFvofr2CWOdhNbufuMbe SLuiLdZ7r9sUXbeMhMB/Gqhv7Y26wAWWW1Pvkw7i/XIfsNwEZwkYGBk0p4j+erqutNpL zLbAiaJWMgseB5X8Nsh1EkDtnPJF6cC9vSxIGrhc6D8Ne1GJMvJQkaS7KuM1FhwZ6rit lyOyyvsR816ZOyb3zFjLc2gC8qBI7BWeiTtIjcv0FJdtoKo7cY7Wl8xs38NJdOsjYXKL mM0A== X-Gm-Message-State: AG10YORbhoD5Yq47jnHpgIbhV3hJDPSJ1YNfLjNLeeMi1zuwWge1opR5SoJgCKFMLjWHwQ== X-Received: by 10.98.71.147 with SMTP id p19mr16026485pfi.165.1454636152312; Thu, 04 Feb 2016 17:35:52 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 74sm19960478pfs.33.2016.02.04.17.35.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 17:35:51 -0800 (PST) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 6/8] staging: wilc1000: use int type for counter variable Date: Fri, 5 Feb 2016 10:35:16 +0900 Message-Id: <1454636118-9943-6-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454636118-9943-1-git-send-email-chaehyun.lim@gmail.com> References: <1454636118-9943-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.2 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 counter is used as for-loop control variable and indicating index of struct wid array so that it is better to use int type. There is no need to set to 0 when it is declared at the top of this function. It is initialized as 0 in for-loop statement. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 323a0cd..4008872 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -452,7 +452,7 @@ s32 wilc_dealloc_assoc_resp_info(tstrConnectRespInfo *pstrConnectRespInfo) int wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids, u32 count, u32 drv) { - s32 counter = 0; + int counter; int ret = 0; if (mode == GET_CFG) {