X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4b7ec6e3964247c7b836ad27acd84bd0c04120a2..12304a3ebc0d11b6c518918cf280971bb15e880d:/package/openwrt/mtd.c diff --git a/package/openwrt/mtd.c b/package/openwrt/mtd.c index 163dcc439..13f4bf195 100644 --- a/package/openwrt/mtd.c +++ b/package/openwrt/mtd.c @@ -232,10 +232,6 @@ mtd_write(const char *trxfile, const char *mtd) int mtd_update(const char *trxfile, const char *mtd) { - if (mtd_unlock(mtd) != 0) { - fprintf(stderr, "Could not unlock mtd device: %s\n", mtd); - exit(1); - } if (mtd_erase("rootfs") != 0) { fprintf(stderr, "Could not erase rootfs\n"); exit(1);