From patchwork Fri Feb 5 01:35: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: 8229981 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 A78B8BEEE5 for ; Fri, 5 Feb 2016 01:36:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D1F5E202F2 for ; Fri, 5 Feb 2016 01:36:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0116F202BE for ; Fri, 5 Feb 2016 01:36:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbcBEBf6 (ORCPT ); Thu, 4 Feb 2016 20:35:58 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36705 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbcBEBfz (ORCPT ); Thu, 4 Feb 2016 20:35:55 -0500 Received: by mail-pf0-f175.google.com with SMTP id n128so59015860pfn.3 for ; Thu, 04 Feb 2016 17:35:55 -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=ixWNKkuUm+yjX6Nj1fdrA6NBZUjIzAgGWwTdeljAx1Y=; b=GsqTM5Npk2ZOMwYli1zkmAIwNFz5Gv1umu102qVGGT9Q3jiksop6NHDkRe0sS2lXfL 5WsDyodMUOcPvCw7hN1VgeIyoOfdlmyoCWeVP3DObGGuTk4iim7zZi5SbkqsAZWtfLmS GFs/xzhj91YQgxhmMV5GnMlDYBhLKq4RPYuXsaMsnz+IknptOyzS8H8objPVCDMt3H83 yi6LU+NOo/4wdCPQkd4E/swZUXq54qSB4rveqT3zyVlCEMyjxCTd5seYRy3mqhBVyaiB 1ygmBZ9Qa6re8B9TC0eGacZWPBwvPuNALsen4ZXjanDApdqEGekSLD0WAx34g7tX14DO HfWA== 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=ixWNKkuUm+yjX6Nj1fdrA6NBZUjIzAgGWwTdeljAx1Y=; b=f/tRev3hT01E2QSCd+lOPEirBKid0QKin2uYejWoMVCZx1uc27vye3q4AuGGj7k8C9 /1cuIMyW0Awb2U8F815ueCebjTOMzth56So9dLKWQCK14VXf/btoFG33BFFs9zD241OS 1zzHJPH1iFsvv4+WffhO010XgY44vRXC1u+eC9rHQpFbpde5WTH2NJdWJFCgnoJJ46W7 BJE94XRojl+XGd/EKOe4Mfz43RfMo6dHQzhZAKti3pDI6kFhB+JXm49mZZpzPuuwttwu 5OT4wwBs9gEZbGgqG9W6UUj02cepjedCoI5QEGp8ii+62ovEIn0Cg6LV1FJ1Q+IEgMZt K+ug== X-Gm-Message-State: AG10YOQwTvtlfDb1LY0BjBZK8/KzxlcuSAdbdWm89jhyiBTGaeflc1iUyMFZkvo17AOPsA== X-Received: by 10.98.93.27 with SMTP id r27mr15746731pfb.57.1454636155355; Thu, 04 Feb 2016 17:35:55 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 74sm19960478pfs.33.2016.02.04.17.35.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 17:35:54 -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 7/8] staging: wilc1000: remove initialization code of counter variable Date: Fri, 5 Feb 2016 10:35:17 +0900 Message-Id: <1454636118-9943-7-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 There is no need to set to 0 for counter variable before entering next for-loop statement because counter is initialized again in for-loop statement, so just remove it. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 4008872..dda81ee 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -468,7 +468,6 @@ int wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids, break; } } - counter = 0; for (counter = 0; counter < count; counter++) { wids[counter].size = wilc_wlan_cfg_get_val( wids[counter].id,