diff options
Diffstat (limited to 'ubi-utils')
-rw-r--r-- | ubi-utils/mtdinfo.c | 5 | ||||
-rw-r--r-- | ubi-utils/ubiformat.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/ubi-utils/mtdinfo.c b/ubi-utils/mtdinfo.c index 11e59c1..0606ab0 100644 --- a/ubi-utils/mtdinfo.c +++ b/ubi-utils/mtdinfo.c @@ -407,11 +407,8 @@ int main(int argc, char * const argv[]) } err = mtd_get_info(libmtd, &mtd_info); - if (err) { - if (errno == ENODEV) - return errmsg("MTD is not present"); + if (err) return sys_errmsg("cannot get MTD information"); - } if (!args.all && args.node) { int mtdn; diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c index 68906f2..896fe20 100644 --- a/ubi-utils/ubiformat.c +++ b/ubi-utils/ubiformat.c @@ -698,8 +698,6 @@ int main(int argc, char * const argv[]) err = mtd_get_info(libmtd, &mtd_info); if (err) { - if (errno == ENODEV) - errmsg("MTD is not present"); sys_errmsg("cannot get MTD information"); goto out_close_mtd; } |