From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DE9CC54EED for ; Sun, 29 Jan 2023 21:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235097AbjA2VVt (ORCPT ); Sun, 29 Jan 2023 16:21:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjA2VVt (ORCPT ); Sun, 29 Jan 2023 16:21:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25CD37DB4 for ; Sun, 29 Jan 2023 13:21:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B2B2B60DF3 for ; Sun, 29 Jan 2023 21:21:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11470C433EF; Sun, 29 Jan 2023 21:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1675027307; bh=5d1J/8xep05YztJULUgf1xDeicagoMZr7wNOysbH+S4=; h=Date:To:From:Subject:From; b=sqcBy0+C6pjjMBLU32ynBlXt4ZjNqLXgFDHd7StCSju/Is3W8UyQ9z31W2rPhV8Yh eKes4dXKVdbBhEnsljf76vAcJNJ60x4U+gpl7BPrgy443amWq8+Rj7B5BdcYxuvPe/ jqYlmUZoSVtEdUnJ3SfWSrBMbADJAL2tWT9HHwAk= Date: Sun, 29 Jan 2023 13:21:46 -0800 To: mm-commits@vger.kernel.org, iii@linux.ibm.com, trix@redhat.com, akpm@linux-foundation.org From: Andrew Morton Subject: + lib-zlib-remove-redundation-assignement-of-avail_in-dfltcc_gdht.patch added to mm-nonmm-unstable branch Message-Id: <20230129212147.11470C433EF@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: lib/zlib: remove redundation assignement of avail_in dfltcc_gdht() has been added to the -mm mm-nonmm-unstable branch. Its filename is lib-zlib-remove-redundation-assignement-of-avail_in-dfltcc_gdht.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-zlib-remove-redundation-assignement-of-avail_in-dfltcc_gdht.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Tom Rix Subject: lib/zlib: remove redundation assignement of avail_in dfltcc_gdht() Date: Sat, 28 Jan 2023 08:50:48 -0800 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/20230128165048.1245792-1-trix@redhat.com Fixes: aa5b395b69b6 ("lib/zlib: add s390 hardware support for kernel zlib_deflate") Signed-off-by: Tom Rix Acked-by: Ilya Leoshkevich Signed-off-by: Andrew Morton --- --- a/lib/zlib_dfltcc/dfltcc_deflate.c~lib-zlib-remove-redundation-assignement-of-avail_in-dfltcc_gdht +++ a/lib/zlib_dfltcc/dfltcc_deflate.c @@ -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, _ Patches currently in -mm which might be from trix@redhat.com are lib-zlib-remove-redundation-assignement-of-avail_in-dfltcc_gdht.patch