summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles.park <charles.park@hardkernel.com>2017-08-14 12:03:52 +0300
committercharles.park <charles.park@hardkernel.com>2017-08-14 12:03:52 +0300
commitc7a6fc304a2a28d115ea885cba0f76cd487ee0ca (patch)
tree3623cf0f7a0595773d67398b3fcf2725df168fcd
parent0cdb5fb25a9a693a4d88b3f9a76e903017ed1435 (diff)
downloadu-boot-c7a6fc304a2a28d115ea885cba0f76cd487ee0ca.tar.xz
ODROID-XU4 : filesize check error fix.
Change-Id: I04b5b76c4448ee5e0b3aacba06c42ff362079d96
-rwxr-xr-xboard/samsung/common/odroid_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/samsung/common/odroid_misc.c b/board/samsung/common/odroid_misc.c
index 5a53b83995..9c58e3120f 100755
--- a/board/samsung/common/odroid_misc.c
+++ b/board/samsung/common/odroid_misc.c
@@ -354,6 +354,9 @@ static uint upload_file(const char *fname, const char *pname,
is_split ? ('a'+i) : ' ',
mem_addr);
#endif
+ /* env variable init */
+ setenv("filesize", "0");
+ filesize = 0;
memset(cmd, 0x00, sizeof(cmd));
if (fileload_part)
@@ -366,9 +369,6 @@ static uint upload_file(const char *fname, const char *pname,
is_split ? ('a'+i) : ' ');
run_command(cmd, 0);
- /* env variable init */
- setenv("filesize", "0");
- filesize = 0;
/* file size check */
if ((filesize = getenv_ulong("filesize", 16, 0))) {
#if defined(ODROID_MISC_DEBUG)