mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
wifi: mt76: mt7996: remove duplicate check in mt7996_mcu_sta_mld_setup_tlv()
The "msta_link" pointer has two NULL checks. Delete the second check. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/fde7246b-08a2-4c2f-b2dc-c3fd0e6b300b@stanley.mountain Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
f22037407c
commit
c29f2c773a
|
|
@ -2264,9 +2264,6 @@ mt7996_mcu_sta_mld_setup_tlv(struct mt7996_dev *dev, struct sk_buff *skb,
|
|||
if (!link)
|
||||
continue;
|
||||
|
||||
if (!msta_link)
|
||||
continue;
|
||||
|
||||
mld_setup_link->wcid = cpu_to_le16(msta_link->wcid.idx);
|
||||
mld_setup_link->bss_idx = link->mt76.idx;
|
||||
mld_setup_link++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user