public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board/purple/flash.c: removed unneded test
Date: Sat, 31 Jul 2010 16:09:35 +0200	[thread overview]
Message-ID: <1280585375-1613-1-git-send-email-fransmeulenbroeks@gmail.com> (raw)

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

             reply	other threads:[~2010-07-31 14:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-31 14:09 Frans Meulenbroeks [this message]
2010-07-31 17:16 ` [U-Boot] [PATCH] board/purple/flash.c: removed unneded test 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1280585375-1613-1-git-send-email-fransmeulenbroeks@gmail.com \
    --to=fransmeulenbroeks@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox