Skip to content

Commit

Permalink
pata_octeon_cf: Use resource_size function
Browse files Browse the repository at this point in the history
Use resource_size function instead of explicit computation.
Patch found using coccinelle.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Alexandru Gheorghiu authored and Jeff Garzik committed Apr 3, 2013
1 parent e0044c9 commit b1cbe7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_octeon_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ static int octeon_cf_probe(struct platform_device *pdev)
goto free_cf_port;
}
cs1 = devm_ioremap_nocache(&pdev->dev, res_cs1->start,
res_cs1->end - res_cs1->start + 1);
resource_size(res_cs1));

if (!cs1)
goto free_cf_port;
Expand Down

0 comments on commit b1cbe7d

Please sign in to comment.