aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Quadros <ext-roger.quadros@nokia.com>2009-03-27 18:48:58 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-03-27 18:50:08 +0200
commit481c7beb341efe172777863bbe9f5e445ea3a0c2 (patch)
tree1e2e25d2df05414922e06f7480e31792734bf9d7
parent0e9ed134f2092cef975f05aea2c1e415137e0c10 (diff)
libmtd: fix mtd_is_bad return code
Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--ubi-utils/src/libmtd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/libmtd.c b/ubi-utils/src/libmtd.c
index b2f386a..32fdf57 100644
--- a/ubi-utils/src/libmtd.c
+++ b/ubi-utils/src/libmtd.c
@@ -194,7 +194,7 @@ int mtd_is_bad(const struct mtd_info *mtd, int eb)
if (ret == -1)
return sys_errmsg("MEMGETBADBLOCK ioctl failed for "
"eraseblock %d (mtd%d)", eb, mtd->num);
- return 0;
+ return ret;
}
/**