From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Gardet Date: Fri, 17 Jun 2016 14:07:09 +0200 Subject: [U-Boot] [PATCH] SPL: ext: remove redundant ifdef statement In-Reply-To: <1465898796-22329-1-git-send-email-brain@jikos.cz> References: <1465898796-22329-1-git-send-email-brain@jikos.cz> Message-ID: <5763E7ED.20906@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 14/06/2016 12:06, Petr Kulhavy a ?crit : > 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 > CC: Guillaume GARDET Acked-by: Guillaume GARDET > --- > 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);