]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit972825a687831a3a8975504425ef2d09768b0047
tree9d08217290654cefa5505d085a032ca60d021e5f
parent8d67c479729afb859dce61c0b6f26e0fdd844be0
sg_last() should use unsigned loop index variable

Clean up: fix a mixed sign comparison in sg_last() accidentally
introduced by commit 47f17014.  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