projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae130bb
)
mt76: mt7615: remove useless if condition in mt7615_add_interface()
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Thu, 27 May 2021 11:01:24 +0000
(13:01 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/main.c
b/drivers/net/wireless/mediatek/mt76/mt7615/main.c
index
c2a122c
..
7c9a55c
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/main.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/main.c
@@
-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);