From 6580c817c237b132915e114874bb49ec4ae04ae2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 24 Jan 2016 21:31:47 +0100 Subject: [PATCH] Cleanup --- libretro-common/file/file_archive_zlib.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libretro-common/file/file_archive_zlib.c b/libretro-common/file/file_archive_zlib.c index 5732ecd09e..28b017cc4a 100644 --- a/libretro-common/file/file_archive_zlib.c +++ b/libretro-common/file/file_archive_zlib.c @@ -133,8 +133,6 @@ static bool zlib_stream_decompress_data_to_file_init( zlib_file_handle_t *handle, const uint8_t *cdata, uint32_t csize, uint32_t size) { - z_stream *stream = NULL; - if (!handle) return false; @@ -149,12 +147,7 @@ static bool zlib_stream_decompress_data_to_file_init( if (!handle->data) goto error; - stream = (z_stream*)handle->stream; - - if (!stream) - goto error; - - zlib_stream_set(stream, csize, size, + zlib_stream_set(handle->stream, csize, size, (const uint8_t*)cdata, handle->data); return true;