From patchwork Fri Nov 18 08:45:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435947 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 76D716047D for ; Fri, 18 Nov 2016 08:45:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E327297E7 for ; Fri, 18 Nov 2016 08:45:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FE4329818; Fri, 18 Nov 2016 08:45:29 +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 DF0C3297E7 for ; Fri, 18 Nov 2016 08:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752497AbcKRIp0 (ORCPT ); Fri, 18 Nov 2016 03:45:26 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35487 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752320AbcKRIpZ (ORCPT ); Fri, 18 Nov 2016 03:45:25 -0500 Received: by mail-pf0-f195.google.com with SMTP id i88so13155987pfk.2 for ; Fri, 18 Nov 2016 00:45:25 -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=q8k/eEOoVM0bnIRU+I0SM2ZzTEHmqHHWICAHs2oWX5Q=; b=ZSKnbtQ/fcEfJL78CHGxoeG17n9yvfJF4OiQjhmAwIZWQfOi8j5KO8EiqtfSjI3YPM jHUr0RGAFoq49pkbD89WpZF7iz7z7aU1sz8wV9L9BcbmVl8LcYLaQRavXZmPcvhIeRHr A1GNYya9ZkASFTw3vXj/2S5bbQqoRt5C8kEAyX9o4bQ+DTTYgywW4mnAG02M5TeM2B0k ycV9wAP4DlWx6orN1T9EMAMWlq/pVSxUwD8/5Y3C0dmXBpmBNB+bUDVzsVu3n1l0WIG6 bbky2o/m/qqSMOsAsldKlrfxfwUYRKIW9y8SFpu+pjrXihHkasBcgIHd8gfRTdgNrqXt WKDA== 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=q8k/eEOoVM0bnIRU+I0SM2ZzTEHmqHHWICAHs2oWX5Q=; b=MvFlQWvIaC4ppy0GzX4z4iPyPJGPggC0tOSzs9oeai1dJQvwzLYAPTHFcvxCt7nLW5 eSdzjuRH5cULk3/YlYSDKCGkO6pMRtkhAQe3jih6AmXnD3tXgfGl6W7sXyPnFNqSAFVn OeG7hn8IDh5uyDdn2R59WHEAJrM9/RlsFWaIHU3geI5qXroO/rvgXRYpObhMXRqgXvzg oNKEsIncGC2vUjBjpNxOZjmQfgvE2g7GDVOQVKDPhsiPhWt51vObPLZql/o3jAYD8+C5 luKj7YJSN8ni9fnacLbdcFXPNDnZek3G4GiesHGmswhdJZ1LEazbn4k+rZ7rrmJ9yXoL rYLg== X-Gm-Message-State: ABUngvdGrLN5ekGwXwek5HU0K8NPgzvfHyxAWnIcRBz9EOZoYhu7gZRZqtkZMl4by5zzDw== X-Received: by 10.99.1.132 with SMTP id 126mr16486432pgb.129.1479458725035; Fri, 18 Nov 2016 00:45:25 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id q12sm15189144pfj.18.2016.11.18.00.45.22 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:45:24 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:45:16 -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 3/7] mwifiex: Remove unused 'sta_ptr' 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 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(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c index 2a162c3..d5aa1b7 100644 --- a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c +++ b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c @@ -1729,7 +1729,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; @@ -1747,7 +1746,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);