scatterlist: refactor the sg_nents
authorMaxim Levitsky <maximlevitsky@gmail.com>
Fri, 28 Sep 2012 08:38:15 +0000 (10:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2012 08:38:15 +0000 (10:38 +0200)
commit232f1b51062553b7cf49f99719fbd1b8a8d80f29
treebf0ad31232df77562ad42a48b1bf21a0e2948c3f
parent2e484610296b25f0a04b516bc144a00731d1d845
scatterlist: refactor the sg_nents

Replace 'while' with 'for' as suggested by Tejun Heo

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/scatterlist.c