summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorTom Wai-Hong Tam <waihong@chromium.org>2011-07-13 11:50:28 +0800
committerSimon Glass <sjg@chromium.org>2011-08-29 10:58:53 -0700
commit8dab0272d2885778f2956dc86a7b9453783f2505 (patch)
tree8fefa2f05a2c83337872595205b655b81149a5c9 /common/main.c
parent923664d8a6b56faea7cf7e88f0a94cad3de739a7 (diff)
fdt: Fix unused variable warning.
This is caused by the previous CL: http://gerrit.chromium.org/gerrit/3907 BUG=chromium-os:17187 TEST=build without warning Change-Id: Ic52e22865aed2eaa783087db4cdbbfa7ebb28b02 Reviewed-on: http://gerrit.chromium.org/gerrit/4002 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index 953b134c23..a7fb39bf88 100644
--- a/common/main.c
+++ b/common/main.c
@@ -277,7 +277,8 @@ void main_loop (void)
int rc = 1;
int flag;
#endif
-#ifdef CONFIG_OF_CONTROL
+#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0) && \
+ defined(CONFIG_OF_CONTROL)
char *env;
#endif
#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)