From patchwork Fri Nov 18 08:44:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435945 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 9D97E6047D for ; Fri, 18 Nov 2016 08:44:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95B2F297E7 for ; Fri, 18 Nov 2016 08:44:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 873C129818; Fri, 18 Nov 2016 08:44:47 +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 0F9FD297E7 for ; Fri, 18 Nov 2016 08:44:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752532AbcKRIop (ORCPT ); Fri, 18 Nov 2016 03:44:45 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34389 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbcKRIoo (ORCPT ); Fri, 18 Nov 2016 03:44:44 -0500 Received: by mail-pg0-f67.google.com with SMTP id e9so19715127pgc.1 for ; Fri, 18 Nov 2016 00:44:43 -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=/vgXHSA63zkTHBra8hQDzpm3SBhrB46oB1Z7xBDH4lw=; b=IEZdud5GG0R09KjR0Jkip15M5REF9xjjj7FP/Cvz7J+BB72hi+AilkSLiavXkERR2V 2P1toCaakFSGm8cA4POvIOR75sWJT8XP9gymhm6s+GWm4CVcuzg060G7LsJvnYTPs8zU 4ALIZkCCnGTA++OZaI4w+g2xWINEABEzk/Kr4xxSx8DWst9C5SZkhNt4r3gX/cu4UuUt YTuwQNbNt/I0ai7yNYqAr3PKxQcLQG8Ps1/Dv9l+nGww83eS+8LPKPlVpQLSGp6dbl4t JCXGeG3o2KaY6Wuh8IClQHA5tvPCksPHD2P075SeNKuRA1NdPDyk2lAVnHbZKFvAmqyE KUng== 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=/vgXHSA63zkTHBra8hQDzpm3SBhrB46oB1Z7xBDH4lw=; b=NuSSfY9Wnoqe7n2WGelebacNJzEDPSsLpc2HXMazOj2D51ACfRweAP4WyYerYtNtjy M/24wqcTNoodTJVI+kFXUbzqU5gS4N/qZx+UOLEWuVZ9zLVH+HGn6RNbM/N8RT2qTQ5D rWlVF4XefkVnuWNr1RpPfhgZGuC1L5Q2NhYnGPqo8O/htEYaczJusKe9I8N5X+2jln5y eU1Sg0hfEN/lKv+7xkXWU7lT+G10w4oQaCmCJVtkrWgnRZXUdGvCOJ3DghSq6IT7Bn+t Vxm/I+yWUhiGAQigf0NaiCwjJEEzUl9776gt1AUDW/TKXpNwPr3jHgP+ZAMuu/xQY79v oE4g== X-Gm-Message-State: ABUngvfjjKAkfBBu0YxHqPhq1kQyjRrce/f8JRcpqPdB8QJ51gNxQNmLcifi+sC7LEN2aA== X-Received: by 10.98.78.88 with SMTP id c85mr10236481pfb.138.1479458683448; Fri, 18 Nov 2016 00:44:43 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id 24sm15169491pfh.41.2016.11.18.00.44.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:44:42 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:44:36 -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 2/7] mwifiex: Remove unused 'chan_num' variable Message-ID: <1a455fb2723904d5ce7a0007c1dd847ccbe89eb9.1479458373.git.kirtika@google.com> 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(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index 97c9765..436e628 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); } }