From 7c6742bd9209c69dbefa4bf12802c3c88b18aeb8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 22 Sep 2010 22:53:47 -0400 Subject: 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 Signed-off-by: Artem Bityutskiy --- compr_zlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compr_zlib.c') diff --git a/compr_zlib.c b/compr_zlib.c index 03464f9..dda3e40 100644 --- a/compr_zlib.c +++ b/compr_zlib.c @@ -53,7 +53,7 @@ Q: Is 12 bytes sufficient? #define STREAM_END_SPACE 12 static int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out, - uint32_t *sourcelen, uint32_t *dstlen, void *model) + uint32_t *sourcelen, uint32_t *dstlen) { z_stream strm; int ret; @@ -101,7 +101,7 @@ static int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out, } static int jffs2_zlib_decompress(unsigned char *data_in, unsigned char *cpage_out, - uint32_t srclen, uint32_t destlen, void *model) + uint32_t srclen, uint32_t destlen) { z_stream strm; int ret; -- cgit v1.2.3