add openvpn dependency on openssl
[openwrt.git] / package / openwrt / mtd.c
index ff104c6..296bf4b 100644 (file)
@@ -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);
This page took 0.018958 seconds and 4 git commands to generate.