CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined
Since commit86cf1c8285("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit999a772d9f("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>
This commit is contained in:
@@ -49,7 +49,6 @@ void bdinfo_print_mhz(const char *name, unsigned long hz)
|
||||
|
||||
static void print_bi_dram(const struct bd_info *bd)
|
||||
{
|
||||
#ifdef CONFIG_NR_DRAM_BANKS
|
||||
int i;
|
||||
|
||||
for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) {
|
||||
@@ -59,7 +58,6 @@ static void print_bi_dram(const struct bd_info *bd)
|
||||
bdinfo_print_num("-> size", bd->bi_dram[i].size);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
__weak void arch_print_bdinfo(void)
|
||||
|
||||
Reference in New Issue
Block a user