summaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2020-08-12 12:55:46 +0300
committerStefan Roese <sr@denx.de>2020-08-26 10:19:16 +0300
commitdfaf6a57974f5b4bcdc2a2a347b192573ffb5135 (patch)
tree6edcb0d2fa5ed61611427d881c07f04e9bbab8dc /common/image.c
parent9f9ecd3e4d7839e24c182fb7b24937e19b670f1b (diff)
downloadu-boot-dfaf6a57974f5b4bcdc2a2a347b192573ffb5135.tar.xz
CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined
Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). It makes no sense to still carry code that is guarded with "#ifndef CONFIG_NR_DRAM_BANKS" (and similar). This patch removes all these unreferenced code paths. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Pali Rohár <pali@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/image.c b/common/image.c
index 9d7d5c17d1..2ed46f7685 100644
--- a/common/image.c
+++ b/common/image.c
@@ -685,8 +685,7 @@ phys_size_t env_get_bootm_size(void)
return tmp;
}
-#if (defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)) && \
- defined(CONFIG_NR_DRAM_BANKS)
+#if defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)
start = gd->bd->bi_dram[0].start;
size = gd->bd->bi_dram[0].size;
#else