From: Jens Axboe Date: Thu, 3 Jul 2014 20:17:45 +0000 (-0600) Subject: iolog: remove dead code that stored a gzip header X-Git-Tag: fio-2.1.11~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d73ac887337070fa64b69528f4f9313306f818ee iolog: remove dead code that stored a gzip header Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 95067056..d08569fd 100644 --- a/iolog.c +++ b/iolog.c @@ -916,7 +916,7 @@ static int gz_work(struct tp_work *work) unsigned int seq; z_stream stream; size_t total = 0; - int ret, wbits; + int ret; INIT_FLIST_HEAD(&list); @@ -926,19 +926,7 @@ static int gz_work(struct tp_work *work) stream.zfree = Z_NULL; stream.opaque = Z_NULL; - /* - * Store gz header if storing to a file - */ -#if 0 - wbits = 15; - if (data->log->log_gz_store) - wbits += 16; - - ret = deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, - 31, 8, Z_DEFAULT_STRATEGY); -#else ret = deflateInit(&stream, Z_DEFAULT_COMPRESSION); -#endif if (ret != Z_OK) { log_err("fio: failed to init gz stream\n"); return 0;