Commit 6c5f4aef02ae76357a5d85303c9890619aad0293
Committed by
Tom Rini
1 parent
feb8cf4a1b
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
board/esd/common/auto_update.c
... | ... | @@ -377,7 +377,7 @@ |
377 | 377 | { |
378 | 378 | block_dev_desc_t *stor_dev = NULL; |
379 | 379 | long sz; |
380 | - int i, res, cnt, old_ctrlc; | |
380 | + int i, res, old_ctrlc; | |
381 | 381 | char buffer[32]; |
382 | 382 | char str[80]; |
383 | 383 | int n; |
... | ... | @@ -455,7 +455,6 @@ |
455 | 455 | clear_ctrlc (); |
456 | 456 | break; |
457 | 457 | } |
458 | - cnt++; | |
459 | 458 | } while (res < 0); |
460 | 459 | } |
461 | 460 |