From: Julia Lawall Date: Thu, 6 Aug 2009 23:05:08 +0000 (-0700) Subject: drivers/ata: use resource_size X-Git-Tag: v2.6.32-rc1~717^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=041b5eac254107cd3ba60034c38a411531cc64ee;p=pandora-kernel.git 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/) // @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // Signed-off-by: Julia Lawall Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed