From 6ae403f79ea5b57f944f88956e62350c9a641f1f Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 7 Feb 2015 21:15:00 +0000 Subject: [PATCH] Remove an useless null check. These functions can't be used in any way without passing a pointer there anyway. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12157 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs.c b/fs.c index 5db59551..cd7a6fba 100644 --- a/fs.c +++ b/fs.c @@ -3935,8 +3935,7 @@ unsigned char *FS_Deflate(const unsigned char *data, size_t size, size_t *deflat return NULL; } - if(deflated_size) - *deflated_size = (size_t)strm.total_out; + *deflated_size = (size_t)strm.total_out; memcpy(out, tmp, strm.total_out); Mem_Free(tmp); @@ -4050,8 +4049,7 @@ unsigned char *FS_Inflate(const unsigned char *data, size_t size, size_t *inflat memcpy(out, outbuf.data, outbuf.cursize); Mem_Free(outbuf.data); - if(inflated_size) - *inflated_size = (size_t)outbuf.cursize; + *inflated_size = (size_t)outbuf.cursize; return out; } -- 2.39.2