Commit c1cd8a00 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Remove pointless check in zlib

We dereference 'z' a few lines above this check.
If it was possible to hit this condition, it wouldve
triggered long ago, in the form of a crash.

Spotted with the source checker from Coverity.com.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d998729e
...@@ -53,8 +53,6 @@ int zlib_inflateInit2_( ...@@ -53,8 +53,6 @@ int zlib_inflateInit2_(
return Z_VERSION_ERROR; return Z_VERSION_ERROR;
/* initialize state */ /* initialize state */
if (z == NULL)
return Z_STREAM_ERROR;
z->msg = NULL; z->msg = NULL;
z->state = &WS(z)->internal_state; z->state = &WS(z)->internal_state;
z->state->blocks = NULL; z->state->blocks = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment