Files
linux/drivers
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-09-11 02:25:58 -04:00
…
2009-07-12 12:22:34 -07:00
2009-08-15 12:58:45 +09:00
…
…
…
2009-07-12 12:22:34 -07:00
…
…
2009-08-04 20:31:32 +02:00
2009-08-26 12:22:32 -07:00
2009-08-20 09:08:45 -07:00
2009-08-26 20:06:52 -07:00
…
…
…
2009-08-18 16:31:13 -07:00
…
2009-07-12 12:22:34 -07:00
…
…
2009-07-30 16:03:45 +09:30
2009-07-01 11:19:47 +02:00
2009-06-18 13:04:04 -07:00
2009-06-18 13:04:04 -07:00