Skip to content

Commit e89bd9e

Browse files
Tom Rixakpm00
authored andcommitted
lib/zlib: remove redundation assignement of avail_in dfltcc_gdht()
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]>
1 parent cc60039 commit e89bd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zlib_dfltcc/dfltcc_deflate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void dfltcc_gdht(
6262
{
6363
deflate_state *state = (deflate_state *)strm->state;
6464
struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param;
65-
size_t avail_in = avail_in = strm->avail_in;
65+
size_t avail_in = strm->avail_in;
6666

6767
dfltcc(DFLTCC_GDHT,
6868
param, NULL, NULL,

0 commit comments

Comments
 (0)