summaryrefslogtreecommitdiff
path: root/board/samsung/common/odroid_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/samsung/common/odroid_misc.c')
-rwxr-xr-xboard/samsung/common/odroid_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samsung/common/odroid_misc.c b/board/samsung/common/odroid_misc.c
index 37ba0acbaf..2c7a10f1b8 100755
--- a/board/samsung/common/odroid_misc.c
+++ b/board/samsung/common/odroid_misc.c
@@ -374,8 +374,6 @@ static uint upload_file(const char *fname, const char *pname,
#endif
total_fsize += filesize;
}
- if (!is_split || !filesize)
- goto out;
mem_addr += filesize;
/* load memory overflow */
@@ -385,6 +383,8 @@ static uint upload_file(const char *fname, const char *pname,
upinfo->file_size = 0;
return upinfo->mem_addr;
}
+ if (!is_split || !filesize)
+ goto out;
}
out:
if (total_fsize) {