Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252483
b: refs/heads/master
c: 431e1ec
h: refs/heads/master
i:
  252481: 8f343d8
  252479: 0cd1009
v: v3
  • Loading branch information
Felix Radensky authored and David Woodhouse committed May 25, 2011
1 parent 7aa194f commit a2efa94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: a80f1c1f6a15e4eeba5c146ec9c5c0e12458abc5
refs/heads/master: 431e1ecabddcd7cbba237182ddf431771f98bb4c
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/mtdconcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
if (!(mtd->flags & MTD_WRITEABLE))
return -EROFS;

ops->retlen = 0;
ops->retlen = ops->oobretlen = 0;

for (i = 0; i < concat->num_subdev; i++) {
struct mtd_info *subdev = concat->subdev[i];
Expand All @@ -334,7 +334,7 @@ concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
devops.len = subdev->size - to;

err = subdev->write_oob(subdev, to, &devops);
ops->retlen += devops.retlen;
ops->retlen += devops.oobretlen;
if (err)
return err;

Expand Down

0 comments on commit a2efa94

Please sign in to comment.