Skip to content

Commit b071576

Browse files
committed
Revert "wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv()"
JIRA: https://issues.redhat.com/browse/RHEL-89168 commit f220374 Author: Lorenzo Bianconi <lorenzo@kernel.org> Date: Tue Mar 25 17:12:05 2025 +0100 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 9890624. 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> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 8141896 commit b071576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void mt76_connac_mcu_sta_basic_tlv(struct mt76_dev *dev, struct sk_buff *skb,
391391
basic->conn_type = cpu_to_le32(CONNECTION_INFRA_BC);
392392

393393
if (vif->type == NL80211_IFTYPE_STATION &&
394-
link_conf && !is_zero_ether_addr(link_conf->bssid)) {
394+
!is_zero_ether_addr(link_conf->bssid)) {
395395
memcpy(basic->peer_addr, link_conf->bssid, ETH_ALEN);
396396
basic->aid = cpu_to_le16(vif->cfg.aid);
397397
} else {

0 commit comments

Comments
 (0)