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 A66F6C0015E for ; Thu, 6 Jul 2023 14:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233286AbjGFOpP (ORCPT ); Thu, 6 Jul 2023 10:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231255AbjGFOpM (ORCPT ); Thu, 6 Jul 2023 10:45:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9AF61732 for ; Thu, 6 Jul 2023 07:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CHQ8hr8v36RUyE6Io+JdxgB9ql1UaYrgMKiJJ9a/AXs=; b=rlWLPNqN6pXF19kxSMviYejBej sSr2dDOibt5FRbmZ5PUguwcwFgrfASMwtJzJDrj3mGJmKbe7hH1++3+Ve7aXU5U51/u5IRHhLBbJX pAqtA7oJJAEdUJCW9G0RI6NZlMBYJQHWJdNqVD03xOr3ssKVPUbjNLs4chYGtk9Af3oIPpLHJUNnT c6jQD7BrUYQC3kwWvjeTaAtERxV0EGBGKS2uXJEvjMBDIcSo76I7i0vuwx1sEsIihjY+SipllfRlS jJTWzAL5BvDPh2B2zzJ+EYe6BNeMeE/LANVBApsArGS6cKjs3nMmJ+TBD2dTMeMn5GqCWjvpbm8xA fDSH31zg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qHQEA-00B993-OR; Thu, 06 Jul 2023 14:45:02 +0000 Date: Thu, 6 Jul 2023 15:45:02 +0100 From: Matthew Wilcox To: Wang Ming Cc: "Liam R. Howlett" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Subject: Re: [PATCH v1] lib:Remove repeated initialization Message-ID: References: <20230706140314.9999-1-machel@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230706140314.9999-1-machel@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 06, 2023 at 10:03:01PM +0800, Wang Ming wrote: > The original code initializes 'entry' > twice in line 3229 and 3232, which > causes duplicate initialization issue. > To fix this, we remove the initialization > of 'entry' in line 3229. mas_next() has a side-effect; it's not a pure initialisation. Fix your tool.