projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9dbeac
)
mt76: mt7615: remove dead code in get_omac_idx
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Thu, 18 Nov 2021 13:07:59 +0000
(14:07 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 19 Dec 2021 14:23:59 +0000
(15:23 +0100)
Remove always false if condition in get_omac_idx for sta type
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
890d9b0
..
a0e8db0
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/main.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/main.c
@@
-141,9
+141,6
@@
static int get_omac_idx(enum nl80211_iftype type, u64 mask)
if (i)
return i - 1;
- if (type != NL80211_IFTYPE_STATION)
- break;
-
/* next, try to find a free repeater entry for the sta */
i = get_free_idx(mask >> REPEATER_BSSID_START, 0,
REPEATER_BSSID_MAX - REPEATER_BSSID_START);