summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-03 10:34:51 +0200
committerMarc Zyngier <maz@kernel.org>2023-08-21 18:42:00 +0200
commit2f54db449b6185024ef884fd3083802e1eae6921 (patch)
tree6f0484eb0a501677041a5454dbb7994549478696 /drivers/irqchip
parentirqchipr/i8259: Mark i8259_of_init() static (diff)
downloadlinux-2f54db449b6185024ef884fd3083802e1eae6921.tar.xz
linux-2f54db449b6185024ef884fd3083802e1eae6921.zip
irqchip/imx-mu-msi: Do not check for 0 return after calling platform_get_irq()
It is not possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230803083452.4085650-2-ruanjinjie@huawei.com
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-imx-mu-msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-imx-mu-msi.c b/drivers/irqchip/irq-imx-mu-msi.c
index 229039eda1b1..90d41c1407ac 100644
--- a/drivers/irqchip/irq-imx-mu-msi.c
+++ b/drivers/irqchip/irq-imx-mu-msi.c
@@ -339,8 +339,8 @@ static int __init imx_mu_of_init(struct device_node *dn,
msi_data->msiir_addr = res->start + msi_data->cfg->xTR;
irq = platform_get_irq(pdev, 0);
- if (irq <= 0)
- return -ENODEV;
+ if (irq < 0)
+ return irq;
platform_set_drvdata(pdev, msi_data);