diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-11-18 14:07:59 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-12-19 15:23:59 +0100 |
commit | e4fce22b5beba9cffbfedb04dc2ad217bf02c854 (patch) | |
tree | f650e2e0c448a49e9e52274ad203928fcfd4b187 /drivers | |
parent | mt76: connac: fix a theoretical NULL pointer dereference in mt76_connac_get_p... (diff) | |
download | linux-e4fce22b5beba9cffbfedb04dc2ad217bf02c854.tar.xz linux-e4fce22b5beba9cffbfedb04dc2ad217bf02c854.zip |
mt76: mt7615: remove dead code in get_omac_idx
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index 890d9b07e156..a0e8db0b27f9 100644 --- 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); |