]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bdinfo: Drop print_cpu_word_size()
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 20:16:50 +0000 (14:16 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 25 Jun 2020 17:24:12 +0000 (13:24 -0400)
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>
cmd/bdinfo.c

index 15eadef19bd60941d1347b283760c099654a757c..a7bbd073c5a80efb74f8f3f790edde9b6b271be2 100644 (file)
 
 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