From: Andrew F. Davis Date: Fri, 6 Jan 2017 19:35:45 +0000 (-0600) Subject: spl: Remove inline ifdef check for EXT and FAT support X-Git-Tag: v2017.03-rc1~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d28b930f237540382a111b6b990a1738b2f3483;p=u-boot spl: Remove inline ifdef check for EXT and FAT support These files are only included for build by the make system when CONFIG_SPL_{EXT,FAT}_SUPPORT is enabled, remove the unneed checks for these in the source files. Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index 1b8e15e37d..f17c6b9494 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -9,7 +9,6 @@ #include #include -#ifdef CONFIG_SPL_EXT_SUPPORT int spl_load_image_ext(struct spl_image_info *spl_image, struct blk_desc *block_dev, int partition, const char *filename) @@ -146,4 +145,3 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image, return -ENOSYS; } #endif -#endif diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index a14acceebb..5e312160d9 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -19,7 +19,6 @@ static int fat_registered; -#ifdef CONFIG_SPL_FAT_SUPPORT static int spl_register_fat_device(struct blk_desc *block_dev, int partition) { int err = 0; @@ -160,4 +159,3 @@ int spl_load_image_fat_os(struct spl_image_info *spl_image, return -ENOSYS; } #endif -#endif