From: Simon Glass Date: Sun, 10 May 2020 20:16:49 +0000 (-0600) Subject: bdinfo: Drop print_bi_flash() X-Git-Tag: v2020.10~139^2~7^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa8b758a88cccddb4f6eab3b90dbc7ab9ed43355;p=platform%2Fkernel%2Fu-boot.git bdinfo: Drop print_bi_flash() This function only has three lines of code in it so inline it. This helps to put all the code in one place for future partitioning. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 8480c8d..15eadef 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -89,13 +89,6 @@ static void print_bi_dram(const bd_t *bd) #endif } -static void print_bi_flash(const bd_t *bd) -{ - print_num("flashstart", (ulong)bd->bi_flashstart); - print_num("flashsize", (ulong)bd->bi_flashsize); - print_num("flashoffset", (ulong)bd->bi_flashoffset); -} - static void print_eth_ip_addr(void) { #if defined(CONFIG_CMD_NET) @@ -137,7 +130,9 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) print_bi_dram(bd); print_num("memstart", (ulong)bd->bi_memstart); print_lnum("memsize", (u64)bd->bi_memsize); - print_bi_flash(bd); + print_num("flashstart", (ulong)bd->bi_flashstart); + print_num("flashsize", (ulong)bd->bi_flashsize); + print_num("flashoffset", (ulong)bd->bi_flashoffset); print_eth_ip_addr(); printf("baudrate = %u bps\n", gd->baudrate); print_num("relocaddr", gd->relocaddr);