]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: removes duplicate vif variable setting
authorLeo Kim <leo.kim@atmel.com>
Tue, 15 Mar 2016 09:48:10 +0000 (18:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
This patches removes duplicate vif variable setting.
This value has already been set previously.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index bfa754bb022d8cf8805ae2ff976456ae4356b286..8a1083133a1bc2a9fa8765124ac4edd570949890 100644 (file)
@@ -912,7 +912,6 @@ int wilc_mac_open(struct net_device *ndev)
                return -ENODEV;
        }
 
-       vif = netdev_priv(ndev);
        wilc = vif->wilc;
        priv = wiphy_priv(vif->ndev->ieee80211_ptr->wiphy);
        netdev_dbg(ndev, "MAC OPEN[%p]\n", ndev);