cmd_source: fix compile error

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4c532326f70bcda71543f6768d3ca136bb7c7d0b
This commit is contained in:
Joseph Chen 2020-01-13 13:08:32 +08:00
parent a61b9434cd
commit 408bf4b932
1 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ source (ulong addr, const char *fit_uname)
const image_header_t *hdr;
#endif
u32 *data;
int verify;
void *buf;
#if defined(CONFIG_FIT)
const void* fit_hdr;
@ -39,8 +39,9 @@ source (ulong addr, const char *fit_uname)
const void *fit_data;
size_t fit_len;
#endif
verify = env_get_yesno("verify");
#if defined(CONFIG_IMAGE_FORMAT_LEGACY) || defined(CONFIG_FIT)
int verify = env_get_yesno("verify");
#endif
buf = map_sysmem(addr, 0);
switch (genimg_get_format(buf)) {