[U-Boot] [PATCH v2] NAND: fixed bugs in nand_[read, write]_skip_bad()
Valeriy Glushkov
gvv at lstec.com
Tue Nov 25 15:36:19 CET 2008
- fixed bugs with returning from nand_[read,write]_skip_bad() to double
read/write speed
Signed-off-by: Valeriy Glushkov <gvv at lstec.com>
---
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index 52b3d21..818a876 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/drivers/mtd/nand/nand_util.c
@@ -498,8 +498,8 @@ int nand_write_skip_bad(nand_info_t *nand, size_t
offset, size_t *length,
if (rval != 0) {
printf ("NAND write to offset %x failed %d\n",
offset, rval);
- return rval;
}
+ return rval;
}
while (left_to_write > 0) {
@@ -568,8 +569,8 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset,
size_t *length,
if (rval != 0) {
printf ("NAND read from offset %x failed %d\n",
offset, rval);
- return rval;
}
+ return rval;
}
while (left_to_read > 0) {
--
1.5.2.5
More information about the U-Boot
mailing list