[package] unvram: make it work on bcm47xx, also look for /dev/mtdblockX
[openwrt.git] / package / mtd / src / mtd.c
index 3e84fd6..a19f718 100644 (file)
@@ -18,7 +18,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id$
  *
  * The code is based on the linux-mtd examples.
  */
@@ -276,10 +275,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.026153 seconds and 4 git commands to generate.