]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7615: remove key check in mt7615_mcu_set_wtbl_key
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 4 Jun 2019 22:12:20 +0000 (00:12 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 27 Jun 2019 10:58:13 +0000 (12:58 +0200)
commita63c21bb2fb18397ca752241cdf00f5866aa5956
tree4d14d1cf0aca3872b71b40d028cf12f0504b7333
parentce91a5c61abc660741262181aa1424ff41535583
mt76: mt7615: remove key check in mt7615_mcu_set_wtbl_key

Do not check key pointer in mt7615_mcu_set_wtbl_key since if set_key_cmd
is SET_KEY, key will be always not NULL. This patch will address a false
positive reported by Coverity-Scan

Addresses-Coverity-ID: 1445463 ("Dereference after null check")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c