mt76: mt7921: remove redundant check on type
authorColin Ian King <colin.king@canonical.com>
Fri, 12 Mar 2021 17:29:49 +0000 (17:29 +0000)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:03:03 +0000 (00:03 +0200)
commit1921b8925c6f2a171af6294bba6af733da2409b9
treec8be22eb5f4ca18002ebbefc7d380ae80846aef4
parentde29d0afebad775910b428816427b55ba2bea50b
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: e0f9fdda81bd ("mt76: mt7921: add ieee80211_ops")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/main.c