From fddf328205d67f842951c2fb16087ed4f74e85d3 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 10 Apr 2017 20:48:48 +0200 Subject: [PATCH] Fix 'maybe-uninitialized' warnings --- u-boot/common/cmd_flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/u-boot/common/cmd_flash.c b/u-boot/common/cmd_flash.c index fea96d7..145729d 100644 --- a/u-boot/common/cmd_flash.c +++ b/u-boot/common/cmd_flash.c @@ -272,8 +272,9 @@ static int flash_fill_sect_ranges(ulong addr_first, ulong addr_last, int *s_firs int do_flerase(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]){ flash_info_t *info; ulong bank, addr_first, addr_last; - int n, sect_first, sect_last; + int n; int rcode = 0; + int sect_first = 0, sect_last = 0; if(argc < 2){ print_cmd_help(cmdtp); -- 2.25.1