diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-09-22 22:53:47 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-09-23 16:39:54 +0300 |
commit | 7c6742bd9209c69dbefa4bf12802c3c88b18aeb8 (patch) | |
tree | 7fdc0daef2491f4e2dd5fcb018ddce709b0e6f7c /compr_rtime.c | |
parent | 1255c7cfa356a24204f9333cd5359e3ece655ed6 (diff) |
mtd-utils: compr: drop unused model argument
The jffs2 compression framework provides a "model" argument when
compressing and decompressing, but the caller always passes in NULL
and the callees never use it. So punt this useless overhead.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'compr_rtime.c')
-rw-r--r-- | compr_rtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compr_rtime.c b/compr_rtime.c index 5613963..7818e1b 100644 --- a/compr_rtime.c +++ b/compr_rtime.c @@ -24,7 +24,7 @@ /* _compress returns the compressed size, -1 if bigger */ static int jffs2_rtime_compress(unsigned char *data_in, unsigned char *cpage_out, - uint32_t *sourcelen, uint32_t *dstlen, void *model) + uint32_t *sourcelen, uint32_t *dstlen) { short positions[256]; int outpos = 0; @@ -64,7 +64,7 @@ static int jffs2_rtime_compress(unsigned char *data_in, unsigned char *cpage_out static int jffs2_rtime_decompress(unsigned char *data_in, unsigned char *cpage_out, - uint32_t srclen, uint32_t destlen, void *model) + uint32_t srclen, uint32_t destlen) { short positions[256]; int outpos = 0; |