qtnfmac: remove duplicated assignment to mac
authorColin Ian King <colin.king@canonical.com>
Thu, 25 May 2017 13:45:03 +0000 (14:45 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Jun 2017 09:49:32 +0000 (12:49 +0300)
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>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c

index fc0ce2c090977b9528f14f26d248d541904480ff..e3c090008125b16c91025655304fa5d6bf0d45f4 100644 (file)
@@ -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) {