inflate_stream: remove redundant check that is always true
authorDaniel Stenberg <daniel@haxx.se>
Sun, 12 Sep 2010 14:34:16 +0000 (16:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Sep 2010 14:34:16 +0000 (16:34 +0200)
lib/content_encoding.c

index f8c9234..6fb7c8d 100644 (file)
@@ -123,7 +123,9 @@ inflate_stream(struct connectdata *conn,
       }
 
       /* Done with these bytes, exit */
-      if(status == Z_OK && z->avail_in == 0) {
+
+      /* status is always Z_OK at this point! */
+      if(z->avail_in == 0) {
         free(decomp);
         return result;
       }