提交 4f8e2545 编写于 作者: C Colin Ian King 提交者: Kalle Valo

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: NColin Ian King <colin.king@canonical.com>
Acked-by: NSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 822446d4
...@@ -922,7 +922,7 @@ void qtnf_netdev_updown(struct net_device *ndev, bool up) ...@@ -922,7 +922,7 @@ void qtnf_netdev_updown(struct net_device *ndev, bool up)
void qtnf_virtual_intf_cleanup(struct net_device *ndev) void qtnf_virtual_intf_cleanup(struct net_device *ndev)
{ {
struct qtnf_vif *vif = qtnf_netdev_get_priv(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) { if (vif->wdev.iftype == NL80211_IFTYPE_STATION) {
switch (vif->sta_state) { switch (vif->sta_state) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册