summaryrefslogtreecommitdiff
path: root/common/cmd_ximg.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-04-17 16:13:45 +0000
committerSimon Glass <sjg@chromium.org>2013-05-13 13:33:22 -0700
commita92181b3991dca3bb6bbdcd4a12591dd027cace1 (patch)
tree9ec4e09094f444ae0d356f6f34fcf198769e001b /common/cmd_ximg.c
parentfb7db41cd46e96621fd97b827622668ee2c6b845 (diff)
downloadu-boot-imx-a92181b3991dca3bb6bbdcd4a12591dd027cace1.zip
u-boot-imx-a92181b3991dca3bb6bbdcd4a12591dd027cace1.tar.gz
u-boot-imx-a92181b3991dca3bb6bbdcd4a12591dd027cace1.tar.bz2
x86: Fix warning in cmd_ximg.c when CONFIG_GZIP is not defined
This local variable is not used unless CONFIG_GZIP is defined. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_ximg.c')
-rw-r--r--common/cmd_ximg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index ea0a26e..02084b0 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -58,7 +58,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
const void *fit_data;
size_t fit_len;
#endif
+#ifdef CONFIG_GZIP
uint unc_len = CONFIG_SYS_XIMG_LEN;
+#endif
uint8_t comp;
verify = getenv_yesno("verify");