[U-Boot] [PATCH 1/4] cmd_bootm: fix compilation warning for assigned but never used variable

Otavio Salvador otavio at ossystems.com.br
Sat Jun 23 22:08:24 CEST 2012


The iflag variable was holding the return of disable_interrupts call
but the value was not used in the method so we drop the assignment.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 common/cmd_bootm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 5685232..45e726a 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1587,7 +1587,6 @@ static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc,
 
 static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-	ulong		iflag;
 	bootm_headers_t	images;
 
 	if (bootz_start(cmdtp, flag, argc, argv, &images))
@@ -1598,7 +1597,7 @@ static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	 * overwrite all exception vector code, so we cannot easily
 	 * recover from any failures any more...
 	 */
-	iflag = disable_interrupts();
+	disable_interrupts();
 
 #if defined(CONFIG_CMD_USB)
 	/*
-- 
1.7.10



More information about the U-Boot mailing list