Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333262
b: refs/heads/master
c: 232f1b5
h: refs/heads/master
v: v3
  • Loading branch information
Maxim Levitsky authored and Jens Axboe committed Sep 28, 2012
1 parent 631c534 commit 0aab92a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e484610296b25f0a04b516bc144a00731d1d845
refs/heads/master: 232f1b51062553b7cf49f99719fbd1b8a8d80f29
7 changes: 2 additions & 5 deletions trunk/lib/scatterlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@ EXPORT_SYMBOL(sg_next);
**/
int sg_nents(struct scatterlist *sg)
{
int nents = 0;
while (sg) {
int nents;
for (nents = 0; sg; sg = sg_next(sg))
nents++;
sg = sg_next(sg);
}

return nents;
}
EXPORT_SYMBOL(sg_nents);
Expand Down

0 comments on commit 0aab92a

Please sign in to comment.