Skip to content

Commit

Permalink
[MTD] [OneNAND] Exit the loop when transferring/filling of the oob is…
Browse files Browse the repository at this point in the history
… finished

When transferring/filling of the oob is finished in OOB_AUTO, we exit the loop

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Mar 9, 2007
1 parent 81280d5 commit 5bc399e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,8 @@ static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int col
int n = ed - st;
memcpy(buf, oob_buf + st, n);
buf += n;
}
} else
break;
}
return 0;
}
Expand Down Expand Up @@ -1295,7 +1296,8 @@ static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf,
int n = ed - st;
memcpy(oob_buf + st, buf, n);
buf += n;
}
} else
break;
}
return 0;
}
Expand Down

0 comments on commit 5bc399e

Please sign in to comment.