aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd/src/jffs2.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd/src/jffs2.c')
-rw-r--r--package/mtd/src/jffs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/jffs2.c b/package/mtd/src/jffs2.c
index 49a7d56120..512f22278c 100644
--- a/package/mtd/src/jffs2.c
+++ b/package/mtd/src/jffs2.c
@@ -247,7 +247,7 @@ int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
#ifdef target_brcm
trx_fixup(outfd, mtd);
#endif
- return 0;
+ return (mtdofs - ofs);
}
void mtd_parse_jffs2data(const char *buf, const char *dir)