Commit:     74eb94f7b84f4e631a0e020991fb16f17ce85ab7
Parent:     30fa0d0f0c0ab2aa0d4c2f88eda49eaa19ea6f8d
Author:     Chuck Lever <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 26 19:29:47 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Mon Oct 29 09:18:04 2007 +0100

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
 include/linux/scatterlist.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index b2ec842..19b751a 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -150,7 +150,7 @@ static inline struct scatterlist *sg_last(struct 
scatterlist *sgl,
        struct scatterlist *ret = &sgl[nents - 1];
        struct scatterlist *sg, *ret = NULL;
-       int i;
+       unsigned int i;
        for_each_sg(sgl, sg, nents, i)
                ret = sg;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to