Skip to content

Commit

Permalink
pci.c: fix judge err in pci_connect_irq
Browse files Browse the repository at this point in the history
Signed-off-by: wangyongrong <[email protected]>
  • Loading branch information
wyr-7 authored and xiaoxiang781216 committed Sep 27, 2024
1 parent 6cec175 commit e8f6b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ int pci_connect_irq(FAR struct pci_device_s *dev, FAR int *irq, int num)
uint8_t msi = 0;
uint8_t msix = 0;

if (dev->bus->ctrl->ops->connect_irq)
if (dev->bus->ctrl->ops->connect_irq == NULL)
{
return -ENOTSUP;
}
Expand Down

0 comments on commit e8f6b1e

Please sign in to comment.