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-02 19:44:12 -0600
commitf9f227a41e43648deb835093a2c5688f8f69f1d2 (patch)
treef2d82baa4b2db67634b5c5c11f5a1dfeb794970b
parentc61df1fc6c2de941ce3732a287e4904850d1cc94 (diff)
downloadu-boot-linaro-stable-f9f227a41e43648deb835093a2c5688f8f69f1d2.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;