[Feature][T108][task-view-1791] solve problem of ota compilation errors

Only Configure: No
Affected branch: GSW_V1453
Affected module: ota
Self-test: yes
Doc Update: no

Change-Id: I7e8b888254dd3599e47552edf9a16f498eccdd35
diff --git a/marvell/services/ota/otad.c b/marvell/services/ota/otad.c
index bb0e9f4..0fe7023 100755
--- a/marvell/services/ota/otad.c
+++ b/marvell/services/ota/otad.c
@@ -950,11 +950,12 @@
 										if (rc == -2) {

 											OTA_ERR("%s: abort by download request.\n", __func__);

 										}

-										mbtk_mtd = -1;

-										set_mtd_check_type(mbtk_mtd);

+

 										else

 									#endif

 										OTA_ERR("Fatal error: sync failed...\n");

+									mbtk_mtd = -1;

+									set_mtd_check_type(mbtk_mtd);

 									return rc;

 								}

 							OTA_DEBUG("Sync %s to %s OK...\n", pSrc->name, pDst->name);