summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-29 09:41:41 +0000
committerWolfgang Denk <wd@denx.de>2011-11-03 20:41:47 +0100
commita2b92a655a8869e49eeab39fccc3ca35bc8eeec0 (patch)
treec217f9d3621f6722200d6ce350da48862bc0090d /common
parent34c202c7eb24d04c577722c14b90fbedf517fd22 (diff)
downloadu-boot-imx-a2b92a655a8869e49eeab39fccc3ca35bc8eeec0.zip
u-boot-imx-a2b92a655a8869e49eeab39fccc3ca35bc8eeec0.tar.gz
u-boot-imx-a2b92a655a8869e49eeab39fccc3ca35bc8eeec0.tar.bz2
common/cmd_ide.c: fix GCC 4.6 build warnings
Fix: cmd_ide.c: In function 'ide_ident': cmd_ide.c:988:6: warning: variable 'do_retry' set but not used [-Wunused-but-set-variable] Delete the unused variable. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ide.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index bbede1c..305c602 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -985,7 +985,6 @@ static void ide_ident(block_dev_desc_t *dev_desc)
#ifdef CONFIG_ATAPI
int retries = 0;
- int do_retry = 0;
#endif
#ifdef CONFIG_TUNE_PIO
@@ -1007,7 +1006,6 @@ static void ide_ident(block_dev_desc_t *dev_desc)
dev_desc->if_type = IF_TYPE_IDE;
#ifdef CONFIG_ATAPI
- do_retry = 0;
retries = 0;
/* Warning: This will be tricky to read */