From 316d5aa4a8ece150383ec57cbc0a8ee339a47eb4 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Wed, 4 Dec 2013 23:05:18 +0530 Subject: [PATCH] Remove fast path exit to allow compressing headers and zero paddings via LZ4. --- lz4_compress.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lz4_compress.c b/lz4_compress.c index 5ac8574..b0e5a36 100644 --- a/lz4_compress.c +++ b/lz4_compress.c @@ -106,12 +106,6 @@ lz4_compress(void *src, uint64_t srclen, void *dst, uint64_t *dstlen, int _srclen = srclen; uchar_t *dst2; - /* - * Ignore compressed data in fast modes. - */ - if (lzdat->level < 3 && PC_TYPE(btype) == TYPE_COMPRESSED) - return (-1); - if (lzdat->level == 1) { rv = LZ4_compress((const char *)src, (char *)dst, _srclen);