lkml.org 
[lkml]   [2021]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs/cramfs: Remove useless call "zlib_inflateEnd"
Date
Fix the following whitescan warning:

Calling "zlib_inflateEnd(&stream)" is only useful for its return value,
which is ignored.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
fs/cramfs/uncompress.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c
index 975d98f..9e1a392 100644
--- a/fs/cramfs/uncompress.c
+++ b/fs/cramfs/uncompress.c
@@ -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);
}

--
1.8.3.1
\
 
 \ /
  Last update: 2021-03-31 05:47    [W:0.026 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site