[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <919A3677-F069-4944-9590-588D366578A1@oracle.com>
Date: Wed, 23 Jan 2019 07:09:02 -0700
From: William Kucharski <william.kucharski@...cle.com>
To: Yang Fan <nullptr.cpp@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, will.deacon@....com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mm/mmap.c: Remove redundant variable 'addr' in
arch_get_unmapped_area_topdown()
> On Jan 20, 2019, at 1:13 AM, Yang Fan <nullptr.cpp@...il.com> wrote:
>
> The variable 'addr' is redundant in arch_get_unmapped_area_topdown(),
> just use parameter 'addr0' directly. Then remove the const qualifier
> of the parameter, and change its name to 'addr'.
>
> Signed-off-by: Yang Fan <nullptr.cpp@...il.com>
These seem similar enough I question whether they really need to be two
distinct patches, given both involve removing const keywords from the same
routine, and the shift to using the passed addr directly rather than
declaring and assigning addr from addr0 is a direct consequence of
removing the const.
I could be wrong though and easily persuaded otherwise.
Powered by blists - more mailing lists