[U-Boot] [PATCH] board/purple/flash.c: removed unneded test

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Sat Jul 31 16:09:35 CEST 2010


removed part of a test which tested for a var that did not change
within the loop and hence was superfluous

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
---
 board/purple/flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/purple/flash.c b/board/purple/flash.c
index 37c7bec..299171d 100644
--- a/board/purple/flash.c
+++ b/board/purple/flash.c
@@ -490,7 +490,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;
-- 
1.6.4.2



More information about the U-Boot mailing list