提交 6c5f4aef 编写于 作者: W Wolfgang Denk 提交者: Tom Rini

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: NWolfgang Denk <wd@denx.de>
Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Acked-by: NMatthias Fuchs <matthias.fuchs@esd.eu>
上级 feb8cf4a
...@@ -377,7 +377,7 @@ int do_auto_update(void) ...@@ -377,7 +377,7 @@ int do_auto_update(void)
{ {
block_dev_desc_t *stor_dev = NULL; block_dev_desc_t *stor_dev = NULL;
long sz; long sz;
int i, res, cnt, old_ctrlc; int i, res, old_ctrlc;
char buffer[32]; char buffer[32];
char str[80]; char str[80];
int n; int n;
...@@ -455,7 +455,6 @@ int do_auto_update(void) ...@@ -455,7 +455,6 @@ int do_auto_update(void)
clear_ctrlc (); clear_ctrlc ();
break; break;
} }
cnt++;
} while (res < 0); } while (res < 0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册