mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
34c202c7eb
commit
a2b92a655a
1 changed files with 0 additions and 2 deletions
|
@ -985,7 +985,6 @@ static void ide_ident(block_dev_desc_t *dev_desc)
|
||||||
|
|
||||||
#ifdef CONFIG_ATAPI
|
#ifdef CONFIG_ATAPI
|
||||||
int retries = 0;
|
int retries = 0;
|
||||||
int do_retry = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TUNE_PIO
|
#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;
|
dev_desc->if_type = IF_TYPE_IDE;
|
||||||
#ifdef CONFIG_ATAPI
|
#ifdef CONFIG_ATAPI
|
||||||
|
|
||||||
do_retry = 0;
|
|
||||||
retries = 0;
|
retries = 0;
|
||||||
|
|
||||||
/* Warning: This will be tricky to read */
|
/* Warning: This will be tricky to read */
|
||||||
|
|
Loading…
Add table
Reference in a new issue