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>
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];
enable_interrupts();
start = get_timer(0);
- last = start;
while ((my_in_8((unsigned char *)(dest + i))) !=
(data_ch[i])) {
if (get_timer(start) >
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)