projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9990d7
)
irqchip/imgpdc: Use resource_size function on resource object
author
Vasyl Gomonovych
<
[email protected]
>
Mon, 20 Nov 2017 22:02:41 +0000
(23:02 +0100)
committer
Thomas Gleixner
<
[email protected]
>
Thu, 23 Nov 2017 19:09:12 +0000
(20:09 +0100)
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]
drivers/irqchip/irq-imgpdc.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-imgpdc.c
b/drivers/irqchip/irq-imgpdc.c
index 1f59998e03f806e72ad48434885192ffacf98c70..e80263e16c4c8fe37f7fca956523d1a810567931 100644
(file)
--- a/
drivers/irqchip/irq-imgpdc.c
+++ b/
drivers/irqchip/irq-imgpdc.c
@@
-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
);
+ res
ource_size(res_regs)
);
if (!priv->pdc_base)
return -EIO;