X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=openwrt%2Fpackage%2Fopenwrt%2Fmtd.c;h=296bf4b63af25514786c53019873505462681969;hb=c87e42acd40e3bf7874571ccc514e3668ec18386;hp=ff104c6575e441edd3882e01e9dac01767e87876;hpb=7209375d881b3d623c076c933fb6c26473907e9d;p=openwrt-10.03%2F.git diff --git a/openwrt/package/openwrt/mtd.c b/openwrt/package/openwrt/mtd.c index ff104c657..296bf4b63 100644 --- a/openwrt/package/openwrt/mtd.c +++ b/openwrt/package/openwrt/mtd.c @@ -140,11 +140,7 @@ mtd_erase(const char *mtd) mtdEraseInfo.start < mtdInfo.size; mtdEraseInfo.start += mtdInfo.erasesize) { - if(ioctl(fd, MEMUNLOCK, &mtdEraseInfo)) { - fprintf(stderr, "Could not unlock MTD device: %s\n", mtd); - close(fd); - exit(1); - } + ioctl(fd, MEMUNLOCK, &mtdEraseInfo); if(ioctl(fd, MEMERASE, &mtdEraseInfo)) { fprintf(stderr, "Could not erase MTD device: %s\n", mtd); close(fd);