]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv()"
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 25 Mar 2025 16:12:05 +0000 (17:12 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 May 2025 12:49:39 +0000 (14:49 +0200)
commitf22037407cb40a4e7bfa4b5d1853fa6c2f3bef6f
tree683422dd4a98cd4e6b62c0f7ae62519897f57c58
parent187de25110c8ac8d52e24f8c596ebdcbcd55bbbf
Revert "wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv()"

In mt76_connac_mcu_sta_basic_tlv() link_conf is always not NULL.
Revert the commit '9890624c1b39 ("wifi: mt76: Check link_conf pointer in
mt76_connac_mcu_sta_basic_tlv()")' in order to fix the following
warning:

drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c:394 mt76_connac_mcu_sta_basic_tlv()
warn: variable dereferenced before check 'link_conf'

This reverts commit 9890624c1b3948c1c7f1d0e19ef0bb7680b8c80d.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250325-mt76_connac_mcu_sta_basic_tlv-link_conf-revert-v1-1-b84efefb74ee@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c