board/purple/flash.c: removed unneded variable

removed a variable that was not used

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
This commit is contained in:
Frans Meulenbroeks 2010-08-01 10:10:41 +02:00 committed by Wolfgang Denk
parent 388a29d024
commit 75b5bbdef6

View file

@ -448,7 +448,6 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
FPWV *addr; FPWV *addr;
int flag, prot, sect; int flag, prot, sect;
ulong start, now, last; ulong start, now, last;
int rcode = 0;
FUNCPTR_WR absEntry; FUNCPTR_WR absEntry;
load_cmd(IN_RAM_CMD_WRITE); load_cmd(IN_RAM_CMD_WRITE);
@ -490,7 +489,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
last = get_timer(0); last = get_timer(0);
/* Start erase on unprotected sectors */ /* Start erase on unprotected sectors */
for (sect = s_first; sect<=s_last && rcode == 0; sect++) { for (sect = s_first; sect<=s_last; sect++) {
if (info->protect[sect] != 0) /* protected, skip it */ if (info->protect[sect] != 0) /* protected, skip it */
continue; continue;
@ -523,7 +522,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
} }
printf (" done\n"); printf (" done\n");
return rcode; return 0;
} }
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------