All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Remove duplication of CONFIG_BOOTCOUNT_LIMIT
Date: Sun, 13 Jan 2013 21:24:58 +0530	[thread overview]
Message-ID: <50F2D8D2.9010606@gmail.com> (raw)

Remove duplication of CONFIG_BOOTCOUNT_LIMIT

Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
---
 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

             reply	other threads:[~2013-01-13 15:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 15:54 Ashok Kumar Reddy [this message]
2013-01-13 17:11 ` [U-Boot] [PATCH] Remove duplication of CONFIG_BOOTCOUNT_LIMIT 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=50F2D8D2.9010606@gmail.com \
    --to=ashokkourla2000@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.