Skip to content

Commit

Permalink
mfd: kempld-core: Use resource_size function on resource object
Browse files Browse the repository at this point in the history
drivers/mfd/kempld-core.c:461:13-16: WARNING: Suspicious code. resource_size is maybe missing with ioport

Generated by: scripts/coccinelle/api/resource_size.cocci

Signed-off-by: Vasyl Gomonovych <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
Carmichael561 authored and Lee Jones committed Jan 8, 2018
1 parent 299fad6 commit 263a7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/kempld-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static int kempld_probe(struct platform_device *pdev)
return -EINVAL;

pld->io_base = devm_ioport_map(dev, ioport->start,
ioport->end - ioport->start);
resource_size(ioport));
if (!pld->io_base)
return -ENOMEM;

Expand Down

0 comments on commit 263a7c5

Please sign in to comment.