]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compression: istream-lz4 - Remove redundant check
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 16 Aug 2021 11:51:29 +0000 (14:51 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 16 Aug 2021 11:51:29 +0000 (14:51 +0300)
The loop is reached only if ret is 0, so there's no need to check it again.

src/lib-compression/istream-lz4.c

index ccfc924d4d982a80bfd7bf4c01d8a685f700e862..86a78b7b366362a059f6659bc0027f2ccada4613 100644 (file)
@@ -149,7 +149,7 @@ static ssize_t i_stream_lz4_read(struct istream_private *stream)
 
        if (zstream->chunk_left == 0) {
                while ((ret = i_stream_lz4_read_chunk_header(zstream)) == 0) {
-                       if (ret == 0 && !stream->istream.blocking)
+                       if (!stream->istream.blocking)
                                return 0;
                }
                if (ret < 0)