SPL: ext: remove redundant ifdef statement
authorPetr Kulhavy <brain@jikos.cz>
Tue, 14 Jun 2016 10:06:36 +0000 (12:06 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 17 Jun 2016 13:51:00 +0000 (09:51 -0400)
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@jikos.cz>
CC: Guillaume GARDET <guillaume.gardet@free.fr>
Acked-by: Guillaume GARDET <guillaume.gardet@free.fr>
common/spl/spl_ext.c

index ade5496600930c4f2a84ac76d1a9467576dcb3fa..89ac4f42976733bda979423ac716068dddbcf25a 100644 (file)
@@ -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);