mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
net: fjes: Use resource_size
Use the function resource_size instead of explicit computation. Problem found using Coccinelle. Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3484f44c08
commit
e0897ae3ec
1 changed files with 1 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ static int fjes_probe(struct platform_device *plat_dev)
|
|||
|
||||
res = platform_get_resource(plat_dev, IORESOURCE_MEM, 0);
|
||||
hw->hw_res.start = res->start;
|
||||
hw->hw_res.size = res->end - res->start + 1;
|
||||
hw->hw_res.size = resource_size(res);
|
||||
hw->hw_res.irq = platform_get_irq(plat_dev, 0);
|
||||
err = fjes_hw_init(&adapter->hw);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue