mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: remove redundant pdev->bus check in probe
Drop the unnecessary pdev->bus NULL check in mt7996_pci_probe() since
the pointer is already dereferenced earlier in mt76_pci_disable_aspm(),
making the check dead code. Silences the related Smatch warning.
Fixes: 377aa17d2aed ("wifi: mt76: mt7996: Add NPU offload support to MT7996 driver")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
1ba5cc4b40
commit
02934c3d07
+1
-1
@@ -141,7 +141,7 @@ static int mt7996_pci_probe(struct pci_dev *pdev,
|
||||
dev->hif2 = hif2;
|
||||
|
||||
mt76_npu_init(mdev, pci_resource_start(pdev, 0),
|
||||
pdev->bus && pci_domain_nr(pdev->bus) ? 3 : 2);
|
||||
pci_domain_nr(pdev->bus) ? 3 : 2);
|
||||
|
||||
ret = mt7996_mmio_wed_init(dev, pdev, false, &irq);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user