Skip to content

Commit

Permalink
irqchip/imgpdc: Use resource_size function on resource object
Browse files Browse the repository at this point in the history
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 <gomonovych@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: marc.zyngier@arm.com
Cc: jason@lakedaemon.net
Link: https://lkml.kernel.org/r/1511215361-8279-1-git-send-email-gomonovych@gmail.com
  • Loading branch information
Vasyl Gomonovych authored and Thomas Gleixner committed Nov 23, 2017
1 parent e9990d7 commit 328bf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/irqchip/irq-imgpdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int pdc_intc_probe(struct platform_device *pdev)

/* Ioremap the registers */
priv->pdc_base = devm_ioremap(&pdev->dev, res_regs->start,
res_regs->end - res_regs->start);
resource_size(res_regs));
if (!priv->pdc_base)
return -EIO;

Expand Down

0 comments on commit 328bf1b

Please sign in to comment.