public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board/purple/flash.c: removed unneded test
@ 2010-07-31 14:09 Frans Meulenbroeks
  2010-07-31 17:16 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Frans Meulenbroeks @ 2010-07-31 14:09 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-08 23:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-31 14:09 [U-Boot] [PATCH] board/purple/flash.c: removed unneded test Frans Meulenbroeks
2010-07-31 17:16 ` Wolfgang Denk
2010-07-31 18:28   ` Frans Meulenbroeks
2010-08-01  8:10     ` [U-Boot] [PATCH] board/purple/flash.c: removed unneded variable Frans Meulenbroeks
2010-08-01  9:01       ` Sergei Shtylyov
2010-08-01 11:31         ` Frans Meulenbroeks
2010-08-08 23:08       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox