We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a0b95 commit 8330b9eCopy full SHA for 8330b9e
drivers/iommu/fsl_pamu.c
@@ -779,7 +779,7 @@ static int fsl_pamu_probe(struct platform_device *pdev)
779
of_get_address(dev->of_node, 0, &size, NULL);
780
781
irq = irq_of_parse_and_map(dev->of_node, 0);
782
- if (irq == NO_IRQ) {
+ if (!irq) {
783
dev_warn(dev, "no interrupts listed in PAMU node\n");
784
goto error;
785
}
@@ -903,7 +903,7 @@ static int fsl_pamu_probe(struct platform_device *pdev)
903
return 0;
904
905
error:
906
- if (irq != NO_IRQ)
+ if (irq)
907
free_irq(irq, data);
908
909
kfree_sensitive(data);
0 commit comments