Skip to content

Commit 328bf1b

Browse files
Carmichael561KAGA-KOKO
authored andcommitted
irqchip/imgpdc: Use resource_size function on resource object
drivers/irqchip/irq-imgpdc.c:327:20-23: WARNING: Suspicious code. resource_size is maybe missing with res_regs Generated by: scripts/coccinelle/api/resource_size.cocci Signed-off-by: Vasyl Gomonovych <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent e9990d7 commit 328bf1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-imgpdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static int pdc_intc_probe(struct platform_device *pdev)
325325

326326
/* Ioremap the registers */
327327
priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start,
328-
res_regs->end - res_regs->start);
328+
resource_size(res_regs));
329329
if (!priv->pdc_base)
330330
return -EIO;
331331

0 commit comments

Comments
 (0)