Fix restore of images for mtd and bml nand
Change-Id: I843ddf7a5bca3ca7670dd6f19644b37cf017e5b1
diff --git a/partition.cpp b/partition.cpp
index 4341159..db1f058 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1325,9 +1325,7 @@
if (Is_File_System(Restore_File_System))
return Restore_Tar(restore_folder, Restore_File_System, total_restore_size, already_restored_size);
else if (Is_Image(Restore_File_System)) {
- *already_restored_size += TWFunc::Get_File_Size(Backup_Name);
- if (Restore_File_System == "emmc")
- return Restore_Image(restore_folder, total_restore_size, already_restored_size, Restore_File_System);
+ return Restore_Image(restore_folder, total_restore_size, already_restored_size, Restore_File_System);
}
LOGERR("Unknown restore method for '%s'\n", Mount_Point.c_str());