[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFkk2KTnmx0c-R8M9YEHvpCF4GDDgVc=5i1iwB8VXsz5T6nLrw@mail.gmail.com>
Date: Fri, 12 Jan 2018 15:38:22 +0100
From: Ulf Magnusson <ulfalizer@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Sam Ravnborg <sam@...nborg.org>,
Michal Marek <michal.lkml@...kovi.net>,
Marc Herbert <marc.herbert@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4/6] kconfig: remove unneeded input_mode test in conf()
On Wed, Jan 10, 2018 at 7:56 AM, Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
> conf() is never called for listnewconfig / olddefconfig.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
> ---
>
> scripts/kconfig/conf.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
> index 8364811..693cd5f 100644
> --- a/scripts/kconfig/conf.c
> +++ b/scripts/kconfig/conf.c
> @@ -368,9 +368,7 @@ static void conf(struct menu *menu)
>
> switch (prop->type) {
> case P_MENU:
> - if ((input_mode == silentoldconfig ||
> - input_mode == listnewconfig ||
> - input_mode == olddefconfig) &&
> + if (input_mode == silentoldconfig &&
> rootEntry != menu) {
> check_conf(menu);
> return;
> --
> 2.7.4
>
LGTM
Acked-by: Ulf Magnusson <ulfalizer@...il.com>
Cheers,
Ulf
Powered by blists - more mailing lists