Skip to contentSkip to conversation

ppp: deflate: Remove useless call "zlib_inflateEnd"

PATCH Applied Jiapeng Chong 2 participants 2 messages Mar 30, 2021 – Mar 31, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ppp/ppp_deflate.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ppp/ppp_deflate.c +0 -1
index c457f84..e6d48e5 100644
@@ -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);
 	}
Signature · 1 line
1.8.3.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 9 lines · On Tue, 30 Mar 2021 17:51:30 +0800 you wrote:

Fix the following whitescan warning:

Calling "zlib_inflateEnd(&state->strm)" is only useful for its return value, which is ignored.

[...]

Here is the summary with links:
- ppp: deflate: Remove useless call "zlib_inflateEnd"

    https://git.kernel.org/netdev/net-next/c/dc5fa2073f63

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html