[U-Boot] [PATCH] common: console: Fix duplicated CONFIG in silent env callback

Wilson Lee wilson.lee at ni.com
Fri Aug 25 07:06:29 UTC 2017

The silent environment callback function does not update the silent
flag during silent env set or unset. That is because of duplicated
CONFIG keyword at preprocessor condition in silent environment
callback function and cause silent env callback unable to work.

This patch is to remove the duplicated CONFIG keywork in silent
environment callback function.

Signed-off-by: Wilson Lee <wilson.lee at ni.com>
Cc: Keng Soon Cheah <keng.soon.cheah at ni.com>
Cc: Chen Yee Chew <chen.yee.chew at ni.com>
Cc: Joe Hershberger <joe.hershberger at ni.com>

 common/console.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/console.c b/common/console.c
index 3167921..f83528c 100644
--- a/common/console.c
+++ b/common/console.c
@@ -68,11 +68,11 @@ U_BOOT_ENV_CALLBACK(console, on_console);
 static int on_silent(const char *name, const char *value, enum env_op op,
 	int flags)
 	if (flags & H_INTERACTIVE)
 		return 0;
 	if ((flags & H_INTERACTIVE) == 0)
 		return 0;

More information about the U-Boot mailing list