mwifiex: Remove unused 'adapter'variable
authorKirtika Ruchandani <kirtika.ruchandani@gmail.com>
Thu, 24 Nov 2016 01:25:50 +0000 (17:25 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Nov 2016 15:27:49 +0000 (17:27 +0200)
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 <huxm@marvell.com>
Cc: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kirtika Ruchandani <kirtika@google.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c

index 2dc2757e9cbca534bf0b5a0dae03de33bdace5b0..a7d359e9f3781572ad268e9d2ee11bb584578a83 100644 (file)
@@ -3990,13 +3990,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);