Skip to contentSkip to conversation

mt76: mt7615: remove useless if condition in mt7615_add_interface()

PATCH New Lorenzo Bianconi 1 participant 1 message May 27, 2021

Subsystems (2)
lore
Share & tools
lore

Lorenzo Bianconi

author maintainer
#0 lore raw

PATCH 1/1 mt76: mt7615: remove useless if condition in mt7615_add_interface()

Get rid of unnecessary if condition in mt7615_add_interface routine

---
 drivers/net/wireless/mediatek/mt76/mt7615/main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7615/main.c +0 -2
index 2627211aa34e..b809d5327089 100644
@@ -241,8 +241,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);
 
Signature · 1 line
2.31.1