From patchwork Thu Nov 24 01:25:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444655 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 CD97A600BA for ; Thu, 24 Nov 2016 01:25:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C457227D9B for ; Thu, 24 Nov 2016 01:25:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B905627DF9; Thu, 24 Nov 2016 01:25:51 +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 4D8FD27D9B for ; Thu, 24 Nov 2016 01:25:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936428AbcKXBZl (ORCPT ); Wed, 23 Nov 2016 20:25:41 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34335 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934630AbcKXBZk (ORCPT ); Wed, 23 Nov 2016 20:25:40 -0500 Received: by mail-pf0-f194.google.com with SMTP id y68so1177369pfb.1 for ; Wed, 23 Nov 2016 17:25:39 -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=e436g8IQdaw4SqbuaSwbONAvdia4cXMlFs9/IxQ0jA0=; b=cnFmpiksSr2rD6yoNqaGPIhW6p/CTAi+eZbC50zlIYZBcCdgNzfoSZVTSNEcsixEod Nyy/0YdiU5JHN+/pHVGIY8tWXZxy9aky7fLJu1YI1KRho5JwFYLX0RuF+9OozfOWCuvC XsScxecfEWZc3S0UQIwgqXEumgNOThSzpx1ndQVQqFywtZUa46KhmNLLMp8857SsyEDG qMmzWoiSBJYQe/4FWVvWQFy3ciPBT0nhjODJBE62PgTYOe5iNXF/cd+Y+MrizvzqMjrS soQJfYHm/zx/JjxdQn+vZ/oQ2Zgw4vW2u7s6V4ayhpYel8OLekR+PdFrCgjmHEFHJtve XWBQ== 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=e436g8IQdaw4SqbuaSwbONAvdia4cXMlFs9/IxQ0jA0=; b=PJIiswLf0dlukV16rSpuRLZ+wwQOxrk5jBrVmZ+QMmXk34VOwIENPOV7ssQNDOaOgc Db2NC961PqIidp6S7LPdwaBmP2pHRLEZWXnE/kEI/sqIpAs+9Mu+OSgKPzGesgPinXVk tzGZ54V9SxP72qK7cr8Z6D5NnqpJvokAm9PeySnWbORtr+1a0Q1/Nwf/yJIQkISOi2nP NLsg5W22MAYKY1pqX4C54yyUZEdhXftnt0jWjh/LAG7w5YLpCjLsjlizThCR1gtcZYXs LGG4HdAyZxPkHCcV873SMAzF5imRar5wAoY72arPILFXJO6KgcL2GyWPkn0foA7FR71D 5HNA== X-Gm-Message-State: AKaTC01LSbQedKhZLBp9pbZY/cW/WbEXZ0US1ILSEuhQ3MVNVBxaaEYRGUvZK/2kdKv3Kw== X-Received: by 10.99.160.1 with SMTP id r1mr10085823pge.107.1479950739204; Wed, 23 Nov 2016 17:25:39 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id a24sm39345689pfh.57.2016.11.23.17.25.38 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:25:38 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:25:29 -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 3/7] mwifiex: Remove unused 'sta_ptr' variable Message-ID: <3d66358c2079a1aa0e756a516f4daa3bc54a62b8.1479950323.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 429d90d2212b introduced mwifiex_cmd_tdls_oper() which initializes struct mwifiex_sta_node* sta_ptr, but does not use it. Compiling with W=1 gives the following warning, fix it. mwifiex/sta_cmd.c: In function ‘mwifiex_cmd_tdls_oper’: mwifiex/sta_cmd.c:1732:27: warning: variable ‘sta_ptr’ set but not used [-Wunused-but-set-variable] Fixes: 429d90d2212b ("mwifiex: add cfg80211 tdls_oper handler support") Cc: Avinash Patil Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/sta_cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c index bcd6408..768c519 100644 --- a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c +++ b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c @@ -1746,7 +1746,6 @@ mwifiex_cmd_tdls_oper(struct mwifiex_private *priv, { struct host_cmd_ds_tdls_oper *tdls_oper = &cmd->params.tdls_oper; struct mwifiex_ds_tdls_oper *oper = data_buf; - struct mwifiex_sta_node *sta_ptr; struct host_cmd_tlv_rates *tlv_rates; struct mwifiex_ie_types_htcap *ht_capab; struct mwifiex_ie_types_qos_info *wmm_qos_info; @@ -1764,7 +1763,6 @@ mwifiex_cmd_tdls_oper(struct mwifiex_private *priv, tdls_oper->reason = 0; memcpy(tdls_oper->peer_mac, oper->peer_mac, ETH_ALEN); - sta_ptr = mwifiex_get_sta_entry(priv, oper->peer_mac); pos = (u8 *)tdls_oper + sizeof(struct host_cmd_ds_tdls_oper);