From dead6fde5190cfcf868e6b46299879c9eb72a886 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 4 Mar 2005 07:59:08 +0000 Subject: last minute bugfixes git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@305 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/openwrt/mtd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'package/openwrt/mtd.c') diff --git a/package/openwrt/mtd.c b/package/openwrt/mtd.c index ff104c657..296bf4b63 100644 --- a/package/openwrt/mtd.c +++ b/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); -- cgit v1.2.3