fs/cramfs: Remove useless call "zlib_inflateEnd"
PATCH 1/1 fs/cramfs: Remove useless call "zlib_inflateEnd"
Fix the following whitescan warning:
Calling "zlib_inflateEnd(&stream)" is only useful for its return value, which is ignored.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- fs/cramfs/uncompress.c | 1 - 1 file changed, 1 deletion(-)
fs/cramfs/uncompress.c +0 -1
@@ -41,7 +41,6 @@ int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) err =zlib_inflateReset (&stream);if (err !=Z_OK ) {pr_err ("zlib_inflateReset error %d\n" , err); -zlib_inflateEnd (&stream);zlib_inflateInit (&stream); }
Signature · 1 line
1.8.3.1