From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ashok Kumar Reddy Date: Sun, 13 Jan 2013 21:24:58 +0530 Subject: [U-Boot] [PATCH] Remove duplication of CONFIG_BOOTCOUNT_LIMIT Message-ID: <50F2D8D2.9010606@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 Remove duplication of CONFIG_BOOTCOUNT_LIMIT Signed-off-by: Ashok Kumar Reddy --- common/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/main.c b/common/main.c index 5d8454e..2314f27 100644 --- a/common/main.c +++ b/common/main.c @@ -369,16 +369,14 @@ void main_loop (void) #ifdef CONFIG_PREBOOT char *p; #endif + + bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop"); + #ifdef CONFIG_BOOTCOUNT_LIMIT unsigned long bootcount = 0; unsigned long bootlimit = 0; char *bcs; char bcs_set[16]; -#endif /* CONFIG_BOOTCOUNT_LIMIT */ - - bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop"); - -#ifdef CONFIG_BOOTCOUNT_LIMIT bootcount = bootcount_load(); bootcount++; bootcount_store (bootcount); -- 1.7.9.5