[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1617099421-58511-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Tue, 30 Mar 2021 18:17:01 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: clm@...com
Cc: josef@...icpanda.com, dsterba@...e.com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] btrfs: Remove useless call "zlib_inflateEnd"
Fix the following whitescan warning:
Calling "zlib_inflateEnd(&workspace->strm)" 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/btrfs/zlib.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c
index d524acf..93537cc 100644
--- a/fs/btrfs/zlib.c
+++ b/fs/btrfs/zlib.c
@@ -357,7 +357,6 @@ int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb)
else
ret = 0;
done:
- zlib_inflateEnd(&workspace->strm);
if (data_in)
kunmap(pages_in[page_in_index]);
if (!ret)
--
1.8.3.1
Powered by blists - more mailing lists