mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
mt76: mt7921: remove redundant check on type
Currently in the switch statement case where type is
NL80211_IFTYPE_STATION there is a check to see if type
is not NL80211_IFTYPE_STATION. This check is always false
and is redundant dead code that can be removed.
Addresses-Coverity: ("Logically dead code")
Fixes: e0f9fdda81
("mt76: mt7921: add ieee80211_ops")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
de29d0afeb
commit
1921b8925c
1 changed files with 0 additions and 3 deletions
|
@ -240,9 +240,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);
|
||||
|
|
Loading…
Reference in a new issue