From e8f6b1e695a92690604b292344c6b8d9603f38d3 Mon Sep 17 00:00:00 2001 From: wangyongrong Date: Tue, 21 May 2024 20:21:34 +0800 Subject: [PATCH] pci.c: fix judge err in pci_connect_irq Signed-off-by: wangyongrong --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3e6bfe07cbd49..568bfb464e2e2 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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; }