OSDN Git Service

mt76: mt7615: remove useless if condition in mt7615_add_interface()
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 27 May 2021 11:01:24 +0000 (13:01 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Jun 2021 07:22:46 +0000 (09:22 +0200)
Get rid of unnecessary if condition in mt7615_add_interface routine

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/main.c

index c2a122c..7c9a55c 100644 (file)
@@ -240,8 +240,6 @@ static int mt7615_add_interface(struct ieee80211_hw *hw,
        }
 
        ret = mt7615_mcu_add_dev_info(phy, vif, true);
-       if (ret)
-               goto out;
 out:
        mt7615_mutex_release(dev);