Re: [PATCH v1] lib:Remove repeated initialization

From: Matthew Wilcox
Date: Thu Jul 06 2023 - 10:45:17 EST


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.