diff mbox

[U-Boot,2/3] cmd_sf: Init "skipped" to avoid GCC warning

Message ID 1317682569-4896-2-git-send-email-marek.vasut@gmail.com
State Superseded
Headers show

Commit Message

Marek Vasut Oct. 3, 2011, 10:56 p.m. UTC
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 common/cmd_sf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Mike Frysinger Oct. 3, 2011, 10:58 p.m. UTC | #1
yeah, Kumar posted a (more complete) fix already
-mike
Marek Vasut Oct. 4, 2011, 12:08 p.m. UTC | #2
On Tuesday, October 04, 2011 12:58:03 AM Mike Frysinger wrote:
> yeah, Kumar posted a (more complete) fix already
> -mike

Thanks!

Cheers
diff mbox

Patch

diff --git a/common/cmd_sf.c b/common/cmd_sf.c
index c8c547a..73006c5 100644
--- a/common/cmd_sf.c
+++ b/common/cmd_sf.c
@@ -161,7 +161,7 @@  static int spi_flash_update(struct spi_flash *flash, u32 offset,
 	char *cmp_buf;
 	const char *end = buf + len;
 	size_t todo;		/* number of bytes to do in this pass */
-	size_t skipped;		/* statistics */
+	size_t skipped = 0;	/* statistics */
 
 	cmp_buf = malloc(flash->sector_size);
 	if (cmp_buf) {