From patchwork Thu Feb 11 04:46:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8276611 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 1ADA39F4DD for ; Thu, 11 Feb 2016 04:46:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 452A0202B8 for ; Thu, 11 Feb 2016 04:46:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 626E12026C for ; Thu, 11 Feb 2016 04:46:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751707AbcBKEqk (ORCPT ); Wed, 10 Feb 2016 23:46:40 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35731 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbcBKEqj (ORCPT ); Wed, 10 Feb 2016 23:46:39 -0500 Received: by mail-pf0-f196.google.com with SMTP id w128so1378404pfb.2 for ; Wed, 10 Feb 2016 20:46:38 -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=4390GZb0SIm4nRzaro/m71wwN+kLzGEZyzSSotAminM=; b=zrgO7fsJdXUBnX1KUexI0vwuCgyhOdpjwZvXKCzw9v61OQcXEpaNUVzvVytkhPnd4c +5aYRkfLeDlSIEC9reOTtsu3TF3kf6s7sIVTs7yBoUtPA3rLGuW7BDCjt+uNvsV/lKbe csMVTKEdK7mYnMaXqr2SW3DB+i4t3LyEnvbXomAI7ggp0VIciTXFjfNwwiAXvs1vRlup o0bPBXuatEEKLB02jkD9E4NE2Fw3uGyE8OO5lQqHRx6/lr4ahHKJQ58hDOyY3gSXghXm gdx+0nYpDEbyzoY2ryOsOuyHgfh6p4Ygkx6SWE4YFy4qInK94827Rgjx3Fjq8v13iDLV VjwA== 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=4390GZb0SIm4nRzaro/m71wwN+kLzGEZyzSSotAminM=; b=RksnXvco5RdCxVFP5adtlYO/kPXt52J6xbIS5cHYpFGmDskka3Vppex29+8d+zVsAk 6Exl43AC4BjAyUN8AuJORTOo8vwdG+LuYJKmNR9Vfjep17jaeLlVv+edW7PLnIcHM1cQ p0hWma4nl7D41DnL2+nB7e7qUkaiDRK+k/ym5H34R4aoUCkZHw6LR3naanLpOcEbEAv8 hHqIBWBdFi+NAvrw9L7OAyfR5m3Vkzxhht2rvReH9hXf69zHQlrPSh+KAdiXEDTDVbpe LgYnTY32WqWNaeQGr4co72bdbw4wnbXI0Wdah4obU3eJmuq+IR4H7GVcgwoEdlVOGJ2/ 8eYg== X-Gm-Message-State: AG10YOSdrXzZQ3LzjXdM7oMg3oQ8Lx8GNGgptdH9yBXNu1Zuje1MsnUFmhsB3APnyUndsA== X-Received: by 10.98.71.130 with SMTP id p2mr63440037pfi.99.1455165998716; Wed, 10 Feb 2016 20:46:38 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id v75sm8606214pfa.39.2016.02.10.20.46.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 20:46:38 -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 V2 2/4] staging: wilc1000: use int type for counter variable Date: Thu, 11 Feb 2016 13:46:23 +0900 Message-Id: <1455165985-5509-2-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455165985-5509-1-git-send-email-chaehyun.lim@gmail.com> References: <1455165985-5509-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.0 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 --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 2bc2970..f3140e0 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1352,7 +1352,7 @@ int wilc_wlan_cfg_get_val(u32 wid, u8 *buffer, u32 buffer_size) int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, u32 count, u32 drv) { - s32 counter = 0; + int counter; int ret = 0; if (mode == GET_CFG) {