Re: [PATCH] ata: fix sparse warning in libata.h

2008-02-20 Thread Jeff Garzik
Harvey Harrison wrote: 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

[PATCH] ata: fix sparse warning in libata.h

2008-02-15 Thread Harvey Harrison
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 [EMAIL

Re: [PATCH] ata: fix sparse warning in libata.h

2008-02-15 Thread Tejun Heo
Harvey Harrison wrote: 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: