Skip to content

Commit

Permalink
lib/zlib: remove redundation assignement of avail_in dfltcc_gdht()
Browse files Browse the repository at this point in the history
cppcheck reports
lib/zlib_dfltcc/dfltcc_deflate.c:65:21: warning: Redundant assignment of 'avail_in' to itself. [selfAssignment]
    size_t avail_in = avail_in = strm->avail_in;

Only setting avail_in once is needed.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: aa5b395 ("lib/zlib: add s390 hardware support for kernel zlib_deflate")
Signed-off-by: Tom Rix <[email protected]>
Acked-by: Ilya Leoshkevich <[email protected]>
Acked-by: Mikhail Zaslonko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Tom Rix authored and akpm00 committed Feb 3, 2023
1 parent cc60039 commit e89bd9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zlib_dfltcc/dfltcc_deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void dfltcc_gdht(
{
deflate_state *state = (deflate_state *)strm->state;
struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param;
size_t avail_in = avail_in = strm->avail_in;
size_t avail_in = strm->avail_in;

dfltcc(DFLTCC_GDHT,
param, NULL, NULL,
Expand Down

0 comments on commit e89bd9e

Please sign in to comment.