]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/zlib/deflate.c
arm: mx6: use imx6_thermal driver
[karo-tx-uboot.git] / lib / zlib / deflate.c
index 5c4022f3d4774b98bb22104890b04a7d3f7f4aec..9a20b7034483c32cdc528f2c14277796f1f1d09d 100644 (file)
@@ -592,9 +592,7 @@ int ZEXPORT deflate (strm, flush)
     }
     s = strm->state;
 
-    if (strm->next_out == Z_NULL ||
-        (strm->next_in == Z_NULL && strm->avail_in != 0) ||
-        (s->status == FINISH_STATE && flush != Z_FINISH)) {
+    if (s->status == FINISH_STATE && flush != Z_FINISH) {
         ERR_RETURN(strm, Z_STREAM_ERROR);
     }
     if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR);