summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 14:16:48 -0600
committerTom Rini <trini@konsulko.com>2020-06-25 13:24:12 -0400
commit3cfbe22bf278163fd86d5005ca4d16f354e1e187 (patch)
treecbc9ebacb7c365a4c40c41994480610a62f30f76
parent537cb0dfd2fbf40491595f55b2e03ce898b3896c (diff)
downloadu-boot-3cfbe22bf278163fd86d5005ca4d16f354e1e187.tar.gz
u-boot-3cfbe22bf278163fd86d5005ca4d16f354e1e187.tar.bz2
u-boot-3cfbe22bf278163fd86d5005ca4d16f354e1e187.zip
bdinfo: Drop print_bi_boot_params()
This function only has one line of code in it so inline it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--cmd/bdinfo.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 9746433c23..8480c8d8ff 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -74,12 +74,6 @@ static void print_mhz(const char *name, unsigned long hz)
printf("%-12s= %6s MHz\n", name, strmhz(buf, hz));
}
-
-static void print_bi_boot_params(const bd_t *bd)
-{
- print_num("boot_params", (ulong)bd->bi_boot_params);
-}
-
static void print_bi_dram(const bd_t *bd)
{
#ifdef CONFIG_NR_DRAM_BANKS
@@ -139,7 +133,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
#endif
if (IS_ENABLED(CONFIG_ARM))
print_num("arch_number", bd->bi_arch_number);
- print_bi_boot_params(bd);
+ print_num("boot_params", (ulong)bd->bi_boot_params);
print_bi_dram(bd);
print_num("memstart", (ulong)bd->bi_memstart);
print_lnum("memsize", (u64)bd->bi_memsize);