[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZKbTbqfsFRJ5VXSj@casper.infradead.org>
Date: Thu, 6 Jul 2023 15:45:02 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Wang Ming <machel@...o.com>
Cc: "Liam R. Howlett" <Liam.Howlett@...cle.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, opensource.kernel@...o.com
Subject: Re: [PATCH v1] lib:Remove repeated initialization
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.
Powered by blists - more mailing lists