Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933992AbeALOi0 (ORCPT + 1 other); Fri, 12 Jan 2018 09:38:26 -0500 Received: from mail-ua0-f194.google.com ([209.85.217.194]:36925 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933757AbeALOiY (ORCPT ); Fri, 12 Jan 2018 09:38:24 -0500 X-Google-Smtp-Source: ACJfBos6HRwnJMnktohRac9MT1vyT68bwisanI9rLXQF8mNnt/RhdcoSxFFi+yWs6ehkVcNHkMdNTV2hc8hp6EuQXDI= MIME-Version: 1.0 In-Reply-To: <1515567374-12722-4-git-send-email-yamada.masahiro@socionext.com> References: <1515567374-12722-1-git-send-email-yamada.masahiro@socionext.com> <1515567374-12722-4-git-send-email-yamada.masahiro@socionext.com> From: Ulf Magnusson Date: Fri, 12 Jan 2018 15:38:22 +0100 Message-ID: Subject: Re: [PATCH 4/6] kconfig: remove unneeded input_mode test in conf() To: Masahiro Yamada Cc: Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Marc Herbert , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 7:56 AM, Masahiro Yamada wrote: > conf() is never called for listnewconfig / olddefconfig. > > Signed-off-by: Masahiro Yamada > --- > > 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 Cheers, Ulf