[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1617162266-843-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Wed, 31 Mar 2021 11:44:26 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: nico@...xnic.net
Cc: linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] 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 <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.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
Powered by blists - more mailing lists