[U-Boot] [PATCH] SPL: ext: remove redundant ifdef statement

Petr Kulhavy brain at jikos.cz
Tue Jun 14 12:06:36 CEST 2016


Remove redundant #if defined(CONFIG_SPL_OS_BOOT) statement around
getenv() calls in spl_load_image_ext_os().

The whole function is surrounded by #ifdef CONFIG_SPL_OS_BOOT.

No functional change.

Signed-off-by: Petr Kulhavy <brain at jikos.cz>
CC: Guillaume GARDET <guillaume.gardet at free.fr>
---
 common/spl/spl_ext.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index 074b31e..9a230d5 100644
--- a/common/spl/spl_ext.c
+++ b/common/spl/spl_ext.c
@@ -88,8 +88,7 @@ int spl_load_image_ext_os(struct blk_desc *block_dev, int partition)
 #endif
 		return -1;
 	}
-
-#if defined(CONFIG_SPL_ENV_SUPPORT) && defined(CONFIG_SPL_OS_BOOT)
+#if defined(CONFIG_SPL_ENV_SUPPORT)
 	file = getenv("falcon_args_file");
 	if (file) {
 		err = ext4fs_open(file, &filelen);
-- 
2.5.0



More information about the U-Boot mailing list