diff options
author | David Woodhouse <dwmw2@infradead.org> | 2020-08-04 10:05:46 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-14 11:16:34 -0400 |
commit | 4dee3f785124af2fb533e820579f2f1139c42f99 (patch) | |
tree | 9087a84dfc478d8ba2466737574f1242e57bc83d /env | |
parent | 684710dc33b8fa1c366ee9f11424b780f999724c (diff) | |
download | u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.tar.gz u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.tar.bz2 u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.zip |
mmc: remove duplicate mmc_get_env_dev() implementations
Since it's so trivial I could just about tolerate this when there were only
two copies of it. But now there are about to be three.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'env')
-rw-r--r-- | env/fat.c | 9 | ||||
-rw-r--r-- | env/mmc.c | 5 |
2 files changed, 0 insertions, 14 deletions
@@ -29,15 +29,6 @@ # define LOADENV #endif -__weak int mmc_get_env_dev(void) -{ -#ifdef CONFIG_SYS_MMC_ENV_DEV - return CONFIG_SYS_MMC_ENV_DEV; -#else - return 0; -#endif -} - static char *env_fat_device_and_part(void) { #ifdef CONFIG_MMC @@ -24,11 +24,6 @@ DECLARE_GLOBAL_DATA_PTR; -__weak int mmc_get_env_dev(void) -{ - return CONFIG_SYS_MMC_ENV_DEV; -} - #if CONFIG_IS_ENABLED(OF_CONTROL) static inline int mmc_offset_try_partition(const char *str, int copy, s64 *val) { |