Skip to content

Commit e8f6b1e

Browse files
wyr-7xiaoxiang781216
authored andcommitted
pci.c: fix judge err in pci_connect_irq
Signed-off-by: wangyongrong <[email protected]>
1 parent 6cec175 commit e8f6b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ int pci_connect_irq(FAR struct pci_device_s *dev, FAR int *irq, int num)
18291829
uint8_t msi = 0;
18301830
uint8_t msix = 0;
18311831

1832-
if (dev->bus->ctrl->ops->connect_irq)
1832+
if (dev->bus->ctrl->ops->connect_irq == NULL)
18331833
{
18341834
return -ENOTSUP;
18351835
}

0 commit comments

Comments
 (0)