Skip to content

Commit c8bb0f0

Browse files
Dan CarpenterKAGA-KOKO
authored andcommitted
irqchip/mvebu-gicp: Fix an IS_ERR() vs NULL check in probe()
ioremap() never returns error pointers, it returns NULL on error. Fix the check to match. Fixes: 3c3d7db ("irqchip/mvebu-gicp: Clear pending interrupts on init") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent c2bac68 commit c8bb0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-mvebu-gicp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
238238
}
239239

240240
base = ioremap(gicp->res->start, resource_size(gicp->res));
241-
if (IS_ERR(base)) {
241+
if (!base) {
242242
dev_err(&pdev->dev, "ioremap() failed. Unable to clear pending interrupts.\n");
243243
} else {
244244
for (i = 0; i < 64; i++)

0 commit comments

Comments
 (0)