aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-04-28 12:28:39 +0000
committerJohn Rigby <john.rigby@linaro.org>2012-05-04 16:28:44 -0600
commite2c993a62efb831cccbc056ddda24f22b92273a3 (patch)
treecbedf9fa6b509db1788efd7151691ffc6a97c739
parent35bdf14ebd6ffa59bb6cff21488a9b680d8e16d5 (diff)
downloadu-boot-linaro-stable-e2c993a62efb831cccbc056ddda24f22b92273a3.tar.gz
GCC47: Fix warning in cmd_nand.c
cmd_nand.c: In function ‘arg_off_size’: cmd_nand.c:216:5: warning: ‘maxsize’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Marek Vasut <marex@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Wolfgang Denk <wd@denx.de>
-rw-r--r--common/cmd_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index bae630dfb..0fd3a6c41 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -191,7 +191,7 @@ static int arg_off_size(int argc, char *const argv[], int *idx,
loff_t *off, loff_t *size)
{
int ret;
- loff_t maxsize;
+ loff_t maxsize = 0;
if (argc == 0) {
*off = 0;