From patchwork Tue Jan 19 10:26:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8060001 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 5A7EE9F1CC for ; Tue, 19 Jan 2016 10:26:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7EFA6203AC for ; Tue, 19 Jan 2016 10:26:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A34372037C for ; Tue, 19 Jan 2016 10:26:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932772AbcASK0g (ORCPT ); Tue, 19 Jan 2016 05:26:36 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33203 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932625AbcASK0e (ORCPT ); Tue, 19 Jan 2016 05:26:34 -0500 Received: by mail-pf0-f193.google.com with SMTP id e65so13023446pfe.0 for ; Tue, 19 Jan 2016 02:26:33 -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=KuhrMvQDIHiS9pRmb3z24PY030NXjERo2BjX1GAV/hs=; b=M2dRYv5eF0ULtIPx+kPoLH8wdw7+sb+XC98sWt+cCYaxH5PA8D8OcJOl6C0Vn10nb6 sx2yxCJzG+rzgD74JD2J5s32QidRjGSD+UbtB3sfjOwG/d1xykWubbO8pjdjRU4xUzBW cAngaYWijE8KvUj0d25YaW01BzA2llAWreMhx8fG+2yP9ewVmfVSA1ZU7RiQXnE7CneH dkGs1Zyw8jlrhr0kmPqLMjQkyjnzOIJBXNOyJTG2l5CDBU8SHpoYPHbD37CGaFAJ8Sab C4rWWnplRs5GXDn8nK2g/DH58g56N/79OEZno1cEBh+iopweKk84/3AEV6pud3KeKmDQ Sojw== 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=KuhrMvQDIHiS9pRmb3z24PY030NXjERo2BjX1GAV/hs=; b=ZF1mDSlx4Re2o2uR3bz3U2dAtbWOYV3t/KEH9p8wfk0WfPu77amU3CNmN7cov95yOw DUEuIuVkQhtpDQdMSwUJxW9cLnOB6ToQnwUffv51nVVJMPPSAyuuBwV1vFIqzlhc/fpN GLvCh7fQxv20M98SLKTBoI4mJ9Zs7gYl0xnKh/W6NWhumY/O5PQEV0Uk3bZQuAjRFKsv EXhO9pMBt9AALZDs6GKt8/9fWZQMgUJR1+eJJBv41l5pAlYor1FHMUoNkriw7Oy6er2W tz+T2/+iHXqc4Oxqqncf5PeJydT9pUcnVOf4G8H7ldkPBDrcc7/qn/d7P5XWSXtwwBzV +Mgw== X-Gm-Message-State: ALoCoQk4W5PvpqAbjkiUaQGC+Qndle7rX4PayXZwuzvQR/rd/WnufpjTJEbjsDsXRKSd5qoX+z61piues/MTikmdvk8DESAmGQ== X-Received: by 10.98.66.74 with SMTP id p71mr43124384pfa.105.1453199193340; Tue, 19 Jan 2016 02:26:33 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 72sm40346055pfk.28.2016.01.19.02.26.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 02:26:32 -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 3/3] staging: wilc1000: use int type for counter variable Date: Tue, 19 Jan 2016 19:26:17 +0900 Message-Id: <1453199177-21085-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1453199177-21085-1-git-send-email-chaehyun.lim@gmail.com> References: <1453199177-21085-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=-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 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. counter 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 86dfe77..7e8e423 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -591,7 +591,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) {