diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-12-10 22:25:53 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-12-15 18:19:32 +0300 |
commit | 1110918e439fde69fdf2fe869f6499d56157fec9 (patch) | |
tree | 580c1dedc986372a65752a3dfb31eac0c4fd8638 /drivers/ntb/msi.c | |
parent | 886c8121659dddb6dbfab4cdeb58d75e2d928731 (diff) | |
download | linux-1110918e439fde69fdf2fe869f6499d56157fec9.tar.xz |
NTB/msi: Use irq_has_action()
Use the proper core function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20201210194044.255887860@linutronix.de
Diffstat (limited to 'drivers/ntb/msi.c')
-rw-r--r-- | drivers/ntb/msi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ntb/msi.c b/drivers/ntb/msi.c index 0a5e884a920c..3f05cfbc73af 100644 --- a/drivers/ntb/msi.c +++ b/drivers/ntb/msi.c @@ -282,15 +282,13 @@ int ntbm_msi_request_threaded_irq(struct ntb_dev *ntb, irq_handler_t handler, struct ntb_msi_desc *msi_desc) { struct msi_desc *entry; - struct irq_desc *desc; int ret; if (!ntb->msi) return -EINVAL; for_each_pci_msi_entry(entry, ntb->pdev) { - desc = irq_to_desc(entry->irq); - if (desc->action) + if (irq_has_action(entry->irq)) continue; ret = devm_request_threaded_irq(&ntb->dev, entry->irq, handler, |