From patchwork Tue Jan 19 10:26: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: 8059991 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 C77A0BEEE5 for ; Tue, 19 Jan 2016 10:26:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 066E02037C for ; Tue, 19 Jan 2016 10:26:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C1162015E for ; Tue, 19 Jan 2016 10:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932769AbcASK0c (ORCPT ); Tue, 19 Jan 2016 05:26:32 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36863 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932625AbcASK0a (ORCPT ); Tue, 19 Jan 2016 05:26:30 -0500 Received: by mail-pa0-f67.google.com with SMTP id a20so28698419pag.3 for ; Tue, 19 Jan 2016 02:26:30 -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=FEGksQ0fxQBZEbPFF5G/pxbJDsFn6dArMoYy/JBisJc=; b=IdthqzPdL/2XS89x5v8V8YRlzqREffHReW66FtgBPeV0C3q20yoxOeNYOPITZYfbDL tyoDNNO/txBLUfuLMxIOuurRo1nB24oDHC/01NCxDG8p0xxPjmTCEhAC6IkrWRyS9nST tMvy0qC+kxg/MQg8fUyC2H4bJTjPk89apAL0rMkm1uvIxwGnIkNDTLx6zawoRttZxxNI OXwXkWFquhzEVGA9IpKBybnqzKecu+oJJeO7uI1TeFT1rBVy1kvm+dWR/E0QQrMxcAwK MbWZeSY8AV/IEToJHwjOe2GPhtS4HlJ4Cmm4Wjd9ZObQ8Vp/PfwbUeuUGbafH046UhrP J3FA== 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=FEGksQ0fxQBZEbPFF5G/pxbJDsFn6dArMoYy/JBisJc=; b=XelVuCy/1sYthDXGDp4GUnKsqIhXnbAOPsJRE0A6dtMFZUI5uhz+imG0A/P/f3DCzu YIYepJsCLmPqT5PaLUBYIVlezc8KQOh1KoXzpRTbK9klVI8vpMHEUqUruiz909483P/U ZnpCO1s4mRfqhKJKPc9Surqn0xCsonxHHPgRYNqcRvj7Hv4ha995YiiOKIcoa0SwFLTc jXjNYqwHAQsC6Ze9LCBIL3vasua/x9bptFdsKkNSraq8KVKLlVfi/2jpiJdLyNCfOCHc pCscklncvgqBg9xGYuwCtzkTLhTt6V3IsSKMPOa009WwwsU9J2rdgnAuuUE2GoyKsSoy mP8A== X-Gm-Message-State: ALoCoQlsFxileAorU/AxwoXlUW/KK220OiAvqcGOipbju6GkRa/19QHmgohpW4LgGXT/5AEawSMy2uUnCiDNJYZK+PD5NWM3+Q== X-Received: by 10.66.63.104 with SMTP id f8mr43257155pas.41.1453199190265; Tue, 19 Jan 2016 02:26:30 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 72sm40346055pfk.28.2016.01.19.02.26.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 02:26:29 -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 2/3] staging: wilc1000: remove redundant initialization for counter variable Date: Tue, 19 Jan 2016 19:26:16 +0900 Message-Id: <1453199177-21085-2-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 There is no need to set counter variable to 0 because it is initialized in next for-loop statement. So, just delete 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 ee9f91f..86dfe77 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -607,7 +607,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,