1 Aug 2010 10:10
[PATCH] board/purple/flash.c: removed unneded variable
Frans Meulenbroeks <fransmeulenbroeks <at> gmail.com>
2010-08-01 08:10:41 GMT
2010-08-01 08:10:41 GMT
removed a variable that was not used
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks <at> gmail.com>
---
This supersedes 0001-board-purple-flash.c-removed-unneded-test.patch submitted yesterday
board/purple/flash.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/board/purple/flash.c b/board/purple/flash.c
index 37c7bec..5cee35e 100644
--- a/board/purple/flash.c
+++ b/board/purple/flash.c
<at> <at> -448,7 +448,6 <at> <at> 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);
<at> <at> -490,7 +489,7 <at> <at> 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 reading)
RSS Feed