summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-03-30 17:51:30 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-30 16:59:30 -0700
commitdc5fa2073f63965faad232af0adf9b7e50b5f340 (patch)
tree5b9a4cf0506d95acd807a543e75b5f34aec129b2
parent8e51a6371088703a5376a8e28849a8dd8e9620ae (diff)
downloadlinux-dc5fa2073f63965faad232af0adf9b7e50b5f340.tar.bz2
ppp: deflate: Remove useless call "zlib_inflateEnd"
Fix the following whitescan warning: Calling "zlib_inflateEnd(&state->strm)" 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> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ppp/ppp_deflate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ppp/ppp_deflate.c b/drivers/net/ppp/ppp_deflate.c
index c457f849e553..e6d48e5c65a3 100644
--- a/drivers/net/ppp/ppp_deflate.c
+++ b/drivers/net/ppp/ppp_deflate.c
@@ -279,7 +279,6 @@ static void z_decomp_free(void *arg)
struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
if (state) {
- zlib_inflateEnd(&state->strm);
vfree(state->strm.workspace);
kfree(state);
}