"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "cd98476705b58e90f8fcfbb4423b077b702661aa"
hwmon: 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> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
Loading
Please register or sign in to comment