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 <wd@denx.de>
Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu>
This commit is contained in:
Wolfgang Denk 2014-11-06 14:03:05 +01:00 committed by Tom Rini
parent feb8cf4a1b
commit 6c5f4aef02
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}