Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49139
b: refs/heads/master
c: 5b4246f
h: refs/heads/master
i:
  49137: 1afe1ed
  49135: 050fce3
v: v3
  • Loading branch information
Kyungmin Park committed Feb 2, 2007
1 parent 7300a2e commit 5a9238c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: abf3c0f23df6686a984efc8fae7277fcdaffaa32
refs/heads/master: 5b4246f1b089746703287fdf422cf15c6d6eff05
12 changes: 4 additions & 8 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static void onenand_update_bufferram(struct mtd_info *mtd, loff_t addr,

/* Invalidate another BufferRAM */
i = ONENAND_NEXT_BUFFERRAM(this);
if (this->bufferram[i].blockpage == blockpage) {
if (this->bufferram[i].blockpage == blockpage)
this->bufferram[i].blockpage = -1;

/* Update BufferRAM */
Expand Down Expand Up @@ -889,7 +889,7 @@ int onenand_do_read_oob(struct mtd_info *mtd, loff_t from, size_t len,

if (ret) {
DEBUG(MTD_DEBUG_LEVEL0, "onenand_read_oob: read failed = 0x%x\n", ret);
goto out;
break;
}

read += thislen;
Expand All @@ -907,7 +907,6 @@ int onenand_do_read_oob(struct mtd_info *mtd, loff_t from, size_t len,
}
}

out:
/* Deselect and wake up anyone waiting on the device */
onenand_release_device(mtd);

Expand Down Expand Up @@ -1099,7 +1098,6 @@ static int onenand_write(struct mtd_info *mtd, loff_t to, size_t len,
}

written += thislen;

if (written == len)
break;

Expand Down Expand Up @@ -1223,17 +1221,16 @@ static int onenand_do_write_oob(struct mtd_info *mtd, loff_t to, size_t len,
ret = this->wait(mtd, FL_WRITING);
if (ret) {
DEBUG(MTD_DEBUG_LEVEL0, "onenand_write_oob: write failed %d\n", ret);
goto out;
break;
}

ret = onenand_verify_oob(mtd, this->page_buf, to);
if (ret) {
DEBUG(MTD_DEBUG_LEVEL0, "onenand_write_oob: verify failed %d\n", ret);
goto out;
break;
}

written += thislen;

if (written == len)
break;

Expand All @@ -1242,7 +1239,6 @@ static int onenand_do_write_oob(struct mtd_info *mtd, loff_t to, size_t len,
column = 0;
}

out:
/* Deselect and wake up anyone waiting on the device */
onenand_release_device(mtd);

Expand Down

0 comments on commit 5a9238c

Please sign in to comment.