diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-05-25 14:45:03 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-06-01 12:49:32 +0300 |
commit | 4f8e25458cb6efc9e4497bb5cecb3a667d4963ab (patch) | |
tree | 0b3b36ae78ac380295ac623edc943d512626d854 /drivers/net/wireless/quantenna | |
parent | 822446d4ff2b1924f8fe16ebb60675f8c3c7b34f (diff) | |
download | blackbird-op-linux-4f8e25458cb6efc9e4497bb5cecb3a667d4963ab.tar.gz blackbird-op-linux-4f8e25458cb6efc9e4497bb5cecb3a667d4963ab.zip |
qtnfmac: remove duplicated assignment to mac
mac is being assigned twice, remove redundant 2nd assignment.
Detected by CoverityScan, CID#1437554 ("Incorrect expression")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index fc0ce2c09097..e3c090008125 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -922,7 +922,7 @@ void qtnf_netdev_updown(struct net_device *ndev, bool up) void qtnf_virtual_intf_cleanup(struct net_device *ndev) { struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); - struct qtnf_wmac *mac = mac = wiphy_priv(vif->wdev.wiphy); + struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); if (vif->wdev.iftype == NL80211_IFTYPE_STATION) { switch (vif->sta_state) { |