Skip to content

Commit

Permalink
ppp: deflate: Remove useless call "zlib_inflateEnd"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiapeng Chong authored and David S. Miller committed Mar 30, 2021
1 parent 8e51a63 commit dc5fa20
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ppp/ppp_deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit dc5fa20

Please sign in to comment.