From patchwork Thu Feb 11 04:46:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8276621 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 4C90A9F4DD for ; Thu, 11 Feb 2016 04:46:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 72310202B8 for ; Thu, 11 Feb 2016 04:46:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8322E2026C for ; Thu, 11 Feb 2016 04:46:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751872AbcBKEqn (ORCPT ); Wed, 10 Feb 2016 23:46:43 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36205 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751733AbcBKEqm (ORCPT ); Wed, 10 Feb 2016 23:46:42 -0500 Received: by mail-pf0-f193.google.com with SMTP id e127so1962333pfe.3 for ; Wed, 10 Feb 2016 20:46:42 -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=BMoEuk0lQc2ciGqc1payzkvL3qNDmJmM0hgCvQ9E0NA=; b=fmHmxu4EkGLAvMYaIrUrUUN1g0pxT5P0wguDvng/WwuTinV+FDTNfSuRLPu8zfxjWE pswtTw3poCqV+Awp4EArjJL4RkmfpeE3zRA6iUJDrLTZQ9AhB9k8ouKib427/PK1WmCS fkX9iAMBuIsCosMl9CLLt4w0IdP+1ct7qSd6ZtEkY6Qj2JcdRJTaexVOyMh/1mWaVqDb ql9/Cy3FZgUV9LNXTFtXO9dNY/0rIIjskvWm7ToZF+8BwzIAp4oYLxJKY27yq74tccmk GDX1Sjc73u8iI+e5UKACzXtjUby5xwxgy64G17eMxBgWNsSQMoFqUjRrMiiEKnVUHyQY Tk8A== 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=BMoEuk0lQc2ciGqc1payzkvL3qNDmJmM0hgCvQ9E0NA=; b=dS/lVGepcjT5PDvsD07TEzepEvElk8pZ+aoAIsuydJBseLsfiSNkGylYZ5G/cNNCLi SWiKBkBq5PK4ebv2g2wWQdDsR1z57g4MLZhK2UFGQuGLhn+rCuoVaTO3hWMwbz21s7xf JC1d6QgwPd/m8dLg+Jp9bD+EZv8otsCs96uxPYpLUE6Sz1D9Ev9Bzqe3vxHiuZ4LeECg ZVkNTkTioNLjyUeLWCUhhiTV9Y4Pe21p7dvtXNQycpMufPSWERtWFH8uGeYXiMd7F/H5 9mMJbNtqBYIRKBLKjUm4q+Z5aUbhrTDtPu/cOA979IwbkIhAl5yOj2oPPMRrGL3WefAY /a3g== X-Gm-Message-State: AG10YOSjyOeB/Ck2FpkvNEcYVIhFri92JiAghRrcuI0X/iLUY+O848uvMoPCEztdY7AQZQ== X-Received: by 10.98.64.4 with SMTP id n4mr50830031pfa.58.1455166001869; Wed, 10 Feb 2016 20:46:41 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id v75sm8606214pfa.39.2016.02.10.20.46.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 20:46:41 -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 3/4] staging: wilc1000: remove initialization code of counter variable Date: Thu, 11 Feb 2016 13:46:24 +0900 Message-Id: <1455165985-5509-3-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 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 --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wlan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index f3140e0..c6bfec3 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1365,7 +1365,6 @@ int wilc_send_config_pkt(struct wilc_vif *vif, 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,