X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f0c31da5a21302a7f25fbb818d24100f0ad3d4e3..fb9f9cdc813406041715d4c692f2b18cfd418cee:/package/mtd/src/jffs2.c diff --git a/package/mtd/src/jffs2.c b/package/mtd/src/jffs2.c index 49a7d5612..512f22278 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)