[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175982567298.709179.7283098755702154844.tip-bot2@tip-bot2>
Date: Tue, 07 Oct 2025 08:27:52 -0000
From: "tip-bot2 for Dan Carpenter" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Dan Carpenter <dan.carpenter@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-kernel@...r.kernel.org, maz@...nel.org
Subject:
[tip: irq/urgent] irqchip/aspeed-scu-ic: Fix an IS_ERR() vs NULL check
The following commit has been merged into the irq/urgent branch of tip:
Commit-ID: 196754c2a04a8ba682b00ea7c818897295c98967
Gitweb: https://git.kernel.org/tip/196754c2a04a8ba682b00ea7c818897295c98967
Author: Dan Carpenter <dan.carpenter@...aro.org>
AuthorDate: Sat, 27 Sep 2025 15:26:05 +03:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Tue, 07 Oct 2025 10:23:22 +02:00
irqchip/aspeed-scu-ic: Fix an IS_ERR() vs NULL check
of_iomap() doesn't return error pointers, it returns NULL. Fix the error
checking to check for NULL pointers.
Fixes: 86cd4301c285 ("irqchip/aspeed-scu-ic: Refactor driver to support variant-based initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
drivers/irqchip/irq-aspeed-scu-ic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-aspeed-scu-ic.c b/drivers/irqchip/irq-aspeed-scu-ic.c
index 5584e0f..bee59c8 100644
--- a/drivers/irqchip/irq-aspeed-scu-ic.c
+++ b/drivers/irqchip/irq-aspeed-scu-ic.c
@@ -215,8 +215,8 @@ static int aspeed_scu_ic_of_init_common(struct aspeed_scu_ic *scu_ic,
int irq, rc = 0;
scu_ic->base = of_iomap(node, 0);
- if (IS_ERR(scu_ic->base)) {
- rc = PTR_ERR(scu_ic->base);
+ if (!scu_ic->base) {
+ rc = -ENOMEM;
goto err;
}
Powered by blists - more mailing lists