* [PATCH] fs/cramfs: Remove useless call "zlib_inflateEnd"
@ 2021-03-31 3:44 Jiapeng Chong
0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2021-03-31 3:44 UTC (permalink / raw)
To: nico; +Cc: linux-kernel, Jiapeng Chong
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-31 3:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 3:44 [PATCH] fs/cramfs: Remove useless call "zlib_inflateEnd" Jiapeng Chong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).