diff options
Diffstat (limited to 'drivers/mtd/onenand/onenand_base.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index eac9b2878596..6d4e67f6c295 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -854,7 +854,8 @@ static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int col | |||
854 | int n = ed - st; | 854 | int n = ed - st; |
855 | memcpy(buf, oob_buf + st, n); | 855 | memcpy(buf, oob_buf + st, n); |
856 | buf += n; | 856 | buf += n; |
857 | } | 857 | } else |
858 | break; | ||
858 | } | 859 | } |
859 | return 0; | 860 | return 0; |
860 | } | 861 | } |
@@ -1295,7 +1296,8 @@ static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, | |||
1295 | int n = ed - st; | 1296 | int n = ed - st; |
1296 | memcpy(oob_buf + st, buf, n); | 1297 | memcpy(oob_buf + st, buf, n); |
1297 | buf += n; | 1298 | buf += n; |
1298 | } | 1299 | } else |
1300 | break; | ||
1299 | } | 1301 | } |
1300 | return 0; | 1302 | return 0; |
1301 | } | 1303 | } |