spl: Remove inline ifdef check for EXT and FAT support
authorAndrew F. Davis <afd@ti.com>
Fri, 6 Jan 2017 19:35:45 +0000 (13:35 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2017 20:37:59 +0000 (15:37 -0500)
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 <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl_ext.c
common/spl/spl_fat.c

index 1b8e15e37d6af1e0b06767a9780cf602c02a4ca9..f17c6b949416c271c3172abb5d03856ca7b0b18e 100644 (file)
@@ -9,7 +9,6 @@
 #include <errno.h>
 #include <image.h>
 
-#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
index a14acceebb3d3a84b95885c0473a353fc8239b47..5e312160d95d20530e6ed310a216a06dc9974275 100644 (file)
@@ -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