From: divverent Date: Sat, 7 Feb 2015 21:15:00 +0000 (+0000) Subject: Remove an useless null check. X-Git-Tag: xonotic-v0.8.1~29^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ae403f79ea5b57f944f88956e62350c9a641f1f;p=xonotic%2Fdarkplaces.git 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 --- 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; }