summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2012-05-19 05:38:19 +0000
committerWolfgang Denk <wd@denx.de>2012-05-22 10:12:58 +0200
commita075a79f98cc3f5972a2ed80551c0873217aef7d (patch)
tree1bf23621c163b0ae4faa9171fc24c5ff3714e60c /common
parent2ab5be7af009b4a40efe2fa5471497c97e70ed28 (diff)
downloadu-boot-imx-a075a79f98cc3f5972a2ed80551c0873217aef7d.zip
u-boot-imx-a075a79f98cc3f5972a2ed80551c0873217aef7d.tar.gz
u-boot-imx-a075a79f98cc3f5972a2ed80551c0873217aef7d.tar.bz2
common/cmd_bootm.c: Fix GCC 4.6 warning
cmd_bootm.c: In function 'do_bootz': cmd_bootm.c:1590:9: warning: variable 'iflag' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bootm.c3
1 files changed, 1 insertions, 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)
/*