SPL: ext: remove redundant ifdef statement
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>
This commit is contained in:
parent
e17adbb350
commit
58c95d5356
|
@ -88,8 +88,7 @@ int spl_load_image_ext_os(struct blk_desc *block_dev, int partition)
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#if defined(CONFIG_SPL_ENV_SUPPORT)
|
||||||
#if defined(CONFIG_SPL_ENV_SUPPORT) && defined(CONFIG_SPL_OS_BOOT)
|
|
||||||
file = getenv("falcon_args_file");
|
file = getenv("falcon_args_file");
|
||||||
if (file) {
|
if (file) {
|
||||||
err = ext4fs_open(file, &filelen);
|
err = ext4fs_open(file, &filelen);
|
||||||
|
|
Loading…
Reference in New Issue