aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorMarek Vasut2012-04-29 00:28:39 +0200
committerWolfgang Denk2012-04-29 14:13:53 +0200
commitf624dd15e3602d6b29b191f42388c182aaa1a855 (patch)
tree3671d5849c652d64834facc343ad8569480b5c34 /common/cmd_nand.c
parente654fac2e6914cb27ae2cb855db5484bde38e107 (diff)
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>
Diffstat (limited to 'common/cmd_nand.c')
-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 bae630dfb68..0fd3a6c414a 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;