From: Wolfgang Denk Date: Thu, 6 Nov 2014 13:03:05 +0000 (+0100) Subject: board/esd/common/auto_update.c: fix Uninitialized variable X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6c5f4aef02ae76357a5d85303c9890619aad0293;p=u-boot.git board/esd/common/auto_update.c: fix Uninitialized variable cppcheck reports: [board/esd/common/auto_update.c:458]: (error) Uninitialized variable: cnt The variable is not really used anywhere, so remove it. Signed-off-by: Wolfgang Denk Cc: Matthias Fuchs Acked-by: Matthias Fuchs --- diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c index 85c3567b0b..b1680741e1 100644 --- a/board/esd/common/auto_update.c +++ b/board/esd/common/auto_update.c @@ -377,7 +377,7 @@ int do_auto_update(void) { block_dev_desc_t *stor_dev = NULL; long sz; - int i, res, cnt, old_ctrlc; + int i, res, old_ctrlc; char buffer[32]; char str[80]; int n; @@ -455,7 +455,6 @@ int do_auto_update(void) clear_ctrlc (); break; } - cnt++; } while (res < 0); }