Patchwork [U-Boot,16/19] x86: Fix warning in cmd_ximg.c when CONFIG_GZIP is not defined

login
register
mail settings
Submitter Simon Glass
Date April 18, 2013, 2:13 a.m.
Message ID <1366251228-19884-17-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/237397/
State Accepted, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - April 18, 2013, 2:13 a.m.
This local variable is not used unless CONFIG_GZIP is defined. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 common/cmd_ximg.c | 2 ++
 1 file changed, 2 insertions(+)

Patch

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");