summaryrefslogtreecommitdiff
path: root/board/esd
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2014-11-06 14:03:05 +0100
committerTom Rini <trini@ti.com>2014-11-10 16:25:27 -0500
commit6c5f4aef02ae76357a5d85303c9890619aad0293 (patch)
tree233b1202e13e3b58798ff1b7ab1b0f6d4999ec33 /board/esd
parentfeb8cf4a1bc9e1d534d4b2e8ad6d3ee9f5384942 (diff)
downloadu-boot-imx-6c5f4aef02ae76357a5d85303c9890619aad0293.zip
u-boot-imx-6c5f4aef02ae76357a5d85303c9890619aad0293.tar.gz
u-boot-imx-6c5f4aef02ae76357a5d85303c9890619aad0293.tar.bz2
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>
Diffstat (limited to 'board/esd')
-rw-r--r--board/esd/common/auto_update.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c
index 85c3567..b168074 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);
}