diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 14:16:50 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-25 13:24:12 -0400 |
commit | db76c9bece679298668e5c1ce43af820fe99a65b (patch) | |
tree | b83c7d895aa8fba1a7e6bea2af74775f65a1c076 /cmd | |
parent | aa8b758a88cccddb4f6eab3b90dbc7ab9ed43355 (diff) | |
download | u-boot-db76c9bece679298668e5c1ce43af820fe99a65b.tar.gz |
bdinfo: Drop print_cpu_word_size()
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 15eadef19b..a7bbd073c5 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -17,11 +17,6 @@ DECLARE_GLOBAL_DATA_PTR; -void print_cpu_word_size(void) -{ - printf("%-12s= %u-bit\n", "Build", (uint)sizeof(void *) * 8); -} - static void print_num(const char *name, ulong value) { printf("%-12s= 0x%0*lx\n", name, 2 * (int)sizeof(value), value); @@ -137,7 +132,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) printf("baudrate = %u bps\n", gd->baudrate); print_num("relocaddr", gd->relocaddr); print_num("reloc off", gd->reloc_off); - print_cpu_word_size(); + printf("%-12s= %u-bit\n", "Build", (uint)sizeof(void *) * 8); #if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH) print_eths(); #endif |