mt76: mt7915: fix uninitialized variable in MSI error handling

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2021-05-07 20:01:01 +02:00
parent 18513ba5fb
commit 35f189cf81
+2 -2
View File
@@ -265,12 +265,12 @@ static int mt7915_pci_probe(struct pci_dev *pdev,
if (!mdev)
return -ENOMEM;
dev = container_of(mdev, struct mt7915_dev, mt76);
ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
if (ret < 0)
goto free;
dev = container_of(mdev, struct mt7915_dev, mt76);
ret = mt7915_mmio_init(mdev, pcim_iomap_table(pdev)[0], pdev->irq);
if (ret)
goto error;