Julia Lawall 041b5eac25 drivers/ata: use resource_size
Use the function resource_size, which reduces the chance of introducing
off-by-one errors in calculating the resource size.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct resource *res;
@@

- (res->end - res->start) + 1
+ resource_size(res)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-09-11 02:25:58 -04:00
..
2009-06-05 17:10:54 -04:00
2009-03-24 22:45:05 -04:00
2009-08-12 06:16:47 -04:00
2009-06-05 14:40:52 -04:00
2009-03-28 20:29:51 +00:00
2009-06-08 09:12:28 -07:00
2009-07-28 21:05:18 -04:00
2009-09-11 02:25:58 -04:00
2009-09-11 02:25:58 -04:00
2009-09-11 02:25:58 -04:00
2008-01-23 05:24:15 -05:00
2009-09-08 21:17:36 -04:00
2007-07-02 10:17:42 -04:00