ppp: deflate: Remove useless call "zlib_inflateEnd"
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 30 Mar 2021 09:51:30 +0000 (17:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Mar 2021 23:59:30 +0000 (16:59 -0700)
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>
drivers/net/ppp/ppp_deflate.c

index c457f849e5531dea40c41cfe62bd0ab6b9ca5b5f..e6d48e5c65a3379e12bbbd4679b1d0b326d3e93b 100644 (file)
@@ -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);
        }