diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-04 15:55:50 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:15:42 +0100 |
commit | 4835324784eb2c75a0ee0cd3d3be90576c637765 (patch) | |
tree | caba623deb16150c753cbf8d7dd3e5e033a24bfe /board/svm_sc8xx | |
parent | 8adc9052d05e6dfdcffbf70f3bb120b859a97559 (diff) | |
download | u-boot-imx-4835324784eb2c75a0ee0cd3d3be90576c637765.zip u-boot-imx-4835324784eb2c75a0ee0cd3d3be90576c637765.tar.gz u-boot-imx-4835324784eb2c75a0ee0cd3d3be90576c637765.tar.bz2 |
board/svm_sc8xx/flash.c: Fix GCC 4.6 build warning
Fix:
flash.c: In function 'write_word':
flash.c:542:15: warning: variable 'last' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/svm_sc8xx')
-rw-r--r-- | board/svm_sc8xx/flash.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/board/svm_sc8xx/flash.c b/board/svm_sc8xx/flash.c index b3893ef..af329b9 100644 --- a/board/svm_sc8xx/flash.c +++ b/board/svm_sc8xx/flash.c @@ -539,7 +539,7 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) static int write_word(flash_info_t *info, ulong dest, ulong data) { ulong addr = (ulong) (info->start[0]); - ulong start, last; + ulong start; int flag; ulong i; int data_short[2]; @@ -587,7 +587,6 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) enable_interrupts(); start = get_timer(0); - last = start; while ((my_in_8((unsigned char *)(dest + i))) != (data_ch[i])) { if (get_timer(start) > @@ -612,7 +611,6 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) enable_interrupts(); start = get_timer(0); - last = start; while ((my_in_be16((unsigned short *)(dest + (i * 2)))) != (data_short[i])) { if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) |