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

    sg_init_table() should use unsigned loop index variable
    Clean up: fix a mixed sign comparison in sg_init_table() accidentally
    introduced by commit d6ec0842.  The sign of the loop index variable
    should match the sign of the "nents" argument.
    Signed-off-by: Chuck Lever <[EMAIL PROTECTED]>
    Cc: Jens Axboe <[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 19b751a..32326c2 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -243,7 +243,7 @@ static inline void sg_init_table(struct scatterlist *sgl, 
unsigned int nents)
        sg_mark_end(sgl, nents);
-               int i;
+               unsigned int i;
                for (i = 0; i < nents; i++)
                        sgl[i].sg_magic = SG_MAGIC;
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