fix hostapd a/g mode if only the channel is configured in the config
[openwrt.git] / package / mtd / src / mtd.c
index b180aec..761139f 100644 (file)
@@ -138,7 +138,7 @@ int mtd_write_buffer(int fd, const char *buf, int offset, int length)
 static int
 image_check(int imagefd, const char *mtd)
 {
-       int ret = 0;
+       int ret = 1;
 #ifdef target_brcm
        ret = trx_check(imagefd, mtd, buf, &buflen);
 #endif
@@ -276,10 +276,8 @@ mtd_write(int imagefd, const char *mtd)
                                }
                        }
 
-                       if (r == 0) {
-                               fprintf(stderr, "No more data left\n");
+                       if (r == 0)
                                break;
-                       }
 
                        buflen += r;
                } while (buflen < erasesize);
This page took 0.022888 seconds and 4 git commands to generate.