diff mbox

[U-Boot] common/cmd_nvedit.c: Add missing 'env save' preproc guard

Message ID 1323519919-7320-1-git-send-email-hkronsto@frequentis.com
State Accepted
Headers show

Commit Message

Horst Kronstorfer Dec. 10, 2011, 12:25 p.m. UTC
Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
---
 common/cmd_nvedit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk Dec. 12, 2011, 7:25 a.m. UTC | #1
Dear Horst Kronstorfer,

In message <1323519919-7320-1-git-send-email-hkronsto@frequentis.com> you wrote:
> Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
> ---
>  common/cmd_nvedit.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 5995354..baaa513 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -977,7 +977,9 @@  U_BOOT_CMD(
 #if defined(CONFIG_CMD_RUN)
 	"env run var [...] - run commands in an environment variable\n"
 #endif
+#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE)
 	"env save - save environment\n"
+#endif
 	"env set [-f] name [arg ...]\n"
 );