sg_last() should use unsigned loop index variable
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Oct 2007 17:29:47 +0000 (19:29 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Oct 2007 08:18:04 +0000 (09:18 +0100)
commit74eb94f7b84f4e631a0e020991fb16f17ce85ab7
tree9d08217290654cefa5505d085a032ca60d021e5f
parent30fa0d0f0c0ab2aa0d4c2f88eda49eaa19ea6f8d
sg_last() should use unsigned loop index variable

Clean up: fix a mixed sign comparison in sg_last() accidentally
introduced by commit 70eb8040.  The sign of the loop index variable
should match the sign of the "nents" argument.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
include/linux/scatterlist.h