summaryrefslogtreecommitdiffstats
path: root/board/purple
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-08-01 10:10:41 +0200
committerWolfgang Denk <wd@denx.de>2010-08-09 01:08:09 +0200
commit75b5bbdef67678560a12efa8e135b40b77dcde48 (patch)
tree081473725ffb95211837c867df2491a74609c3c6 /board/purple
parent388a29d0243eaca258b4c21e9456b09a0fff76a6 (diff)
downloadtalos-obmc-uboot-75b5bbdef67678560a12efa8e135b40b77dcde48.tar.gz
talos-obmc-uboot-75b5bbdef67678560a12efa8e135b40b77dcde48.zip
board/purple/flash.c: removed unneded variable
removed a variable that was not used Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'board/purple')
-rw-r--r--board/purple/flash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/purple/flash.c b/board/purple/flash.c
index 37c7becbaa..5cee35ec2d 100644
--- a/board/purple/flash.c
+++ b/board/purple/flash.c
@@ -448,7 +448,6 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
FPWV *addr;
int flag, prot, sect;
ulong start, now, last;
- int rcode = 0;
FUNCPTR_WR absEntry;
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);
/* 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 */
continue;
@@ -523,7 +522,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
}
printf (" done\n");
- return rcode;
+ return 0;
}
/*-----------------------------------------------------------------------
OpenPOWER on IntegriCloud