From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frans Meulenbroeks Date: Sat, 31 Jul 2010 16:09:35 +0200 Subject: [U-Boot] [PATCH] board/purple/flash.c: removed unneded test Message-ID: <1280585375-1613-1-git-send-email-fransmeulenbroeks@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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