From patchwork Fri Nov 18 08:45:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9435949 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 5D5A56047D for ; Fri, 18 Nov 2016 08:45:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 540E0297E7 for ; Fri, 18 Nov 2016 08:45:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48BBE29818; Fri, 18 Nov 2016 08:45: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 C27A4297E7 for ; Fri, 18 Nov 2016 08:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbcKRIpp (ORCPT ); Fri, 18 Nov 2016 03:45:45 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33199 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752044AbcKRIpo (ORCPT ); Fri, 18 Nov 2016 03:45:44 -0500 Received: by mail-pf0-f196.google.com with SMTP id 144so13206218pfv.0 for ; Fri, 18 Nov 2016 00:45:44 -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=33UPFF0y9caop82qC5U4PNSg0aF8JTSIKy2cNNht5JY=; b=zv7/FTvBpbCcoRaL91LTKimwjssBylxqENKW1jGpIiQO5cMld4hdr6zT5bJIqUtExZ GTCFe815d2f63VfNVm5SAi38qHwKJ9ufxF7CLeeBep8ELc36BSyE8fFDW21yPzrPq00C mmpOZuDiz/uMvtlXuh6/qY+HzzlMVj4XYqgYwh+DtEoungLYvi6oOe6GdLSLIb5xcI1i 4HUba/LlzNmNrfdtTpVbrYrrAgpG5PzsD8orXBa3YyFnX6Ti1WrinS34tBRcycAm/cZn bKQ7srYdKLxnwy3F8lC9GlUpNWlFaIyBGCD8D6JIr2niAf/YrvWxqCMcGix7IGJjn06D yKmg== 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=33UPFF0y9caop82qC5U4PNSg0aF8JTSIKy2cNNht5JY=; b=SzDrYBF1wBe8Hdr7/jRFRIX8Nir2ubx8ncyze8F6SVkM5X4VHguqnW1B/vrmZx3tk7 Ao5Km9mD3+o1W5TfasGB6WcH8ER5XJMiWxp4NKxDyujNds7gqVvWNIDqmA/dNzN4UjyB +yLHhJWBYPh7u95E1Nj2++qGzEOJxCX6JOxpLtBnosF0Nev6vdEvc/CELV+w8synx0lb rweDQoEqz+bPcuTN7DL0GJPAIEyKDpn2o4o7/LmXd+jG0IeqnRoPHJAtRFu/iBKIn1+Z 3xoDeMeBcbOWBml32d6EMxEU0PZpKBXt496q+FXnvzmrlS6MolTcatwzLl5KMddOZW5w 2f3g== X-Gm-Message-State: ABUngvdYZYLi6j7psuZ8Y9GjhmSdv7MF/dgsMHVrGafeXIDEepqNIUN5WkYv7ITQbsXuWg== X-Received: by 10.98.74.18 with SMTP id x18mr10406526pfa.58.1479458743668; Fri, 18 Nov 2016 00:45:43 -0800 (PST) Received: from google.com ([2620:0:1000:1301:853b:c23c:5fbf:7fc7]) by smtp.gmail.com with ESMTPSA id v82sm15217097pfi.6.2016.11.18.00.45.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Nov 2016 00:45:42 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Fri, 18 Nov 2016 00:45:37 -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 4/7] mwifiex: Remove unused 'adapter'variable Message-ID: <5a001da4fa5bc1365c7d463e7ce9f96b4a029d90.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 3935ccc14d2c introduced mwifiex_tm_cmd() which initializes struct mwifiex_adapter* adapter, but doesn't use it. Compiling with W=1 gives the following warning, fix it. mwifiex/cfg80211.c: In function ‘mwifiex_tm_cmd’: mwifiex/cfg80211.c:3973:26: warning: variable ‘adapter’ set but not used [-Wunused-but-set-variable] Fixes: 3935ccc14d2c ("mwifiex: add cfg80211 testmode support") Cc: Xinming Hu Cc: Amitkumar Karwar Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 -- 1 file changed, 2 deletions(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 39ce76a..dd93cda 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -3970,13 +3970,11 @@ static int mwifiex_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev, struct mwifiex_private *priv = mwifiex_netdev_get_priv(wdev->netdev); struct mwifiex_ds_misc_cmd *hostcmd; struct nlattr *tb[MWIFIEX_TM_ATTR_MAX + 1]; - struct mwifiex_adapter *adapter; struct sk_buff *skb; int err; if (!priv) return -EINVAL; - adapter = priv->adapter; err = nla_parse(tb, MWIFIEX_TM_ATTR_MAX, data, len, mwifiex_tm_policy);