summaryrefslogtreecommitdiffstats
path: root/package/openwrt/mtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/openwrt/mtd.c')
-rw-r--r--package/openwrt/mtd.c4
1 files changed, 0 insertions, 4 deletions
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);