summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mtd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mtd.c b/cmd/mtd.c
index acd886da6da..d0072129659 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -477,7 +477,7 @@ static int do_mtd_io(struct cmd_tbl *cmdtp, int flag, int argc,
struct mtd_info *mtd;
u32 oob_len;
u8 *buf;
- int ret;
+ int ret = CMD_RET_SUCCESS;
if (argc < 2)
return CMD_RET_USAGE;