Skip to content

Commit

Permalink
NTB/msi: Use irq_has_action()
Browse files Browse the repository at this point in the history
Use the proper core function.

Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
KAGA-KOKO committed Dec 15, 2020
1 parent 886c812 commit 1110918
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ntb/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1110918

Please sign in to comment.