From patchwork Thu Nov 24 01:24:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444653 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7242E600BA for ; Thu, 24 Nov 2016 01:25:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A80627D9B for ; Thu, 24 Nov 2016 01:25:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F08C27DF9; Thu, 24 Nov 2016 01:25:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12F1927D9B for ; Thu, 24 Nov 2016 01:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936496AbcKXBZC (ORCPT ); Wed, 23 Nov 2016 20:25:02 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36008 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935908AbcKXBZA (ORCPT ); Wed, 23 Nov 2016 20:25:00 -0500 Received: by mail-pg0-f66.google.com with SMTP id x23so2200825pgx.3 for ; Wed, 23 Nov 2016 17:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PM673zM8UnBnEnFd+M5EEfQOHApsSjKI2ztBSD+iiYE=; b=tOOQlMj1mhuckCsD+xLPFv67ekCF8htG5X4iz6pC92KK7fqcRdj/IaTdo68mtagLkl 8ntmHpO1bJv9qo8IhRq9mSS7v6yIaOFSvWjbBl0NUAeZvieaOakBWzoP9T1CSClel4LT IDYbq4H2XdACkyglVL0uVvuc/2hL1mnaE2lRo/0eGrFfEztxpCQe1RF6h42HQO3YBYEQ Dwwdu11f1d0rEt/SBu8NT3OIXiPMPTHFtzjAkOfnF/KlNPWqInsR6EHXLFaiUTo15scs KuRlFBk0hXzQcvd8nyh9gAiuo7DzTsCjXsT43FhCtk9/exx4VHXW3RESJ8XIYBqX+sCy 74Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=PM673zM8UnBnEnFd+M5EEfQOHApsSjKI2ztBSD+iiYE=; b=A9FLdOQMSq/PB90PEaEA9o5vUs/KMBH0Eok5C3MyiCEa3qbbamx6moIY1l6yfY4x2k zDsB4OEfk1AYOSWkMAmjuFxmkeMlhD7eKR00rffnU6rlISV/CbriGrCH9HzPT06WIhG7 0A9VE1uokwUUqgNK/zqeg6Atxv7pszW9e5b76OafOdrfdblA8TgWGnSvgJ5Sw7aUnVGy eOBAqaT4mGABxlEuzwJZGbMxsWntk6TN09632BA8UyvRTiCD4HiVu1L9sRrnG6Des4/K L04M+cUzSLR9ZuUT+60i/cb+9ibLjvNSjT7Wdx56fVd6wqDltCSN61atf2dJT++HZV0s GZ3Q== X-Gm-Message-State: AKaTC003gwuag1lpGYUQqTc17c7ZfNJruwF7haU0jpJTZZfOJHcw1QDGpEebVgJPjk90uA== X-Received: by 10.98.14.143 with SMTP id 15mr5691421pfo.11.1479950700025; Wed, 23 Nov 2016 17:25:00 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id 1sm27823189pgp.1.2016.11.23.17.24.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:24:59 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:24:54 -0800 To: Amitkumar Karwar Cc: Arnd Bergmann , Kalle Valo , linux-wireless@vger.kernel.org, Nishant Sarmukadam , Zhaoyang Liu , Bing Zhao , Xinming Hu , Avinash Patil Subject: [PATCH v2 2/7] mwifiex: Remove unused 'chan_num' variable Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit b5413e6b2228 removed all uses of chan_num in mwifiex_config_scan(). Compiling mwifiex with W=1 gives the following warning, fix it. mwifiex/scan.c: In function ‘mwifiex_config_scan’: mwifiex/scan.c:830:6: warning: variable ‘chan_num’ set but not used [-Wunused-but-set-variable] Fixes: b5413e6b2228 ("mwifiex: increase the number of nodes in command pool") Cc: Amitkumar Karwar Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/scan.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index 98ce072..1816916 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -827,7 +827,6 @@ mwifiex_config_scan(struct mwifiex_private *priv, u32 num_probes; u32 ssid_len; u32 chan_idx; - u32 chan_num; u32 scan_type; u16 scan_dur; u8 channel; @@ -1105,13 +1104,12 @@ mwifiex_config_scan(struct mwifiex_private *priv, mwifiex_dbg(adapter, INFO, "info: Scan: Scanning current channel only\n"); } - chan_num = chan_idx; } else { mwifiex_dbg(adapter, INFO, "info: Scan: Creating full region channel list\n"); - chan_num = mwifiex_scan_create_channel_list(priv, user_scan_in, - scan_chan_list, - *filtered_scan); + mwifiex_scan_create_channel_list(priv, user_scan_in, + scan_chan_list, + *filtered_scan); } }