]> git.baikalelectronics.ru Git - kernel.git/commit
ata: fix sparse warning in libata.h
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 15 Feb 2008 21:41:32 +0000 (13:41 -0800)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Feb 2008 17:12:47 +0000 (12:12 -0500)
commite805e69233629ee7d77a44e844a587961467e709
tree8d43b2f5fcdd228ecbf5c7e3fc550d49649ba84d
parent57fbd41407421e0933d8cda8279bc90e8e771815
ata: fix sparse warning in libata.h

Avoids lots of these, also is more readable.
include/linux/libata.h:1210:13: warning: potentially expensive pointer subtraction

Change the subtraction to addition on the other side of the comparison.

Thanks to Christer Weinigel for the suggestion.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/libata.h