From patchwork Thu Nov 24 01:25:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444657 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 DCC22600BA for ; Thu, 24 Nov 2016 01:26:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D527E27D9B for ; Thu, 24 Nov 2016 01:26:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA13627DF9; Thu, 24 Nov 2016 01:26:00 +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 5974227D9B for ; Thu, 24 Nov 2016 01:26:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936409AbcKXBZ6 (ORCPT ); Wed, 23 Nov 2016 20:25:58 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35275 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934630AbcKXBZ5 (ORCPT ); Wed, 23 Nov 2016 20:25:57 -0500 Received: by mail-pg0-f65.google.com with SMTP id p66so2206576pga.2 for ; Wed, 23 Nov 2016 17:25:57 -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=NjLaD7MkfFpE2URNqXN3i5dDhMLA2/mrY5sEBkX2Zlo=; b=eaOHphzzr1yB0Um3PkSyJqZaAUw1KJiGMBLJ5AYOlko9pTNDln0ezkJBxmk/tamYko uEj0s2cH5CzVvLxvk2JnZkFETwrS+KVKr0H/n/92zOUS7H4zM25mGlX/b4TXI75uYzAd 1sFp9K3z5zmY4CDlwJHqY7dm9RgX0jXQPwrs2af55B4B6Ok9RLCTgxIgKbpL6MvtEJXJ KDvvTN06EoX9fCJybAPyTk8z+6W0P8/qL+lxEWGGfe8CV5v79QyzTl9sK39F0+B1Fr/O pRg+XSih+pi5IoyZjbFx1cJqJsByFV73fDrmcDLb9Uge/gmMF1ayS7udmb7YFfX0XOrb OfLg== 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=NjLaD7MkfFpE2URNqXN3i5dDhMLA2/mrY5sEBkX2Zlo=; b=jFxfmbDOzEdgc33RzpaiDmHHkFrI9mfpKigi1RmqIhiEpDfLJXLu/dpLg4aToIp8bm npWGSy2wNDxQStIl5IGev4FbzeS0u8rZhlkllJrbHeqFXNbfWRGEFgtlzV9McXL8X4zc Jbw7JeFdMn9jKHmSvdq71ASfi0MUc+A/pl7ExZC2tLuroD9LUyTPY1anYO8alx1Wcgs9 RNH8VoKKQI83ALhvW6vTvJnjZN60nqUB2ln90y+QF6u2CFevEPO4Iz9nFMuy/yh9/NoV eelnbDiEX1rCoADh30i0zvZNmQYjxqgOduOUh+ojZJ3MisyGUVS9u3ZbHXgI8JL2Jhu3 snRQ== X-Gm-Message-State: AKaTC03rrJhiXudz3llNHX0g64qW8FFF5q0QSbFzKJlXtOgCcTI7SFtLwQHbFxfJY0Kc8w== X-Received: by 10.99.227.81 with SMTP id o17mr10231140pgj.69.1479950756600; Wed, 23 Nov 2016 17:25:56 -0800 (PST) Received: from google.com ([2620:0:1000:1301:7c:c779:de59:30f3]) by smtp.gmail.com with ESMTPSA id s3sm55367144pfg.14.2016.11.23.17.25.55 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 17:25:55 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 17:25:50 -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 4/7] mwifiex: Remove unused 'adapter'variable Message-ID: <776792b748b49db285a739a26f585539726076e0.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 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(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index c26469a..a231f09 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -3980,13 +3980,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);