Received: by 10.223.185.116 with SMTP id b49csp5577067wrg; Tue, 27 Feb 2018 16:19:24 -0800 (PST) X-Google-Smtp-Source: AG47ELsb0Zl4hGj0OLfA1JvlcJYynqC0mVtgeeZEmAedxGjk7EaZYiUnbbkXBM+FVCtmshPA3T+1 X-Received: by 2002:a17:902:3383:: with SMTP id b3-v6mr9770732plc.224.1519777164420; Tue, 27 Feb 2018 16:19:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519777164; cv=none; d=google.com; s=arc-20160816; b=T5Gk8SAS3VgRncw0qiYPKhprJlFUnw0LcmrkUSVNGpYNRY7C+RiXLvZCnmIYRPPk8K yh4UOWuer1V/+kVcMLJRzYXzrqwSNP3/QDVVkoGE7JMo5TSkqbrQmI+GBqgv840EaPUp Ah2Dv+dg0EtfMSAAdvMylMdlz5TWEswFmQzUmihMSuUlVdPSxV2muvMQG8S/vIP4Kkc+ Xrhobsw0xD49PH9QtFZyeO1OeEdIx0WBFOV/2QnfAwkLCkpAPIYfGPKCUlmvK+Mdz+EQ 06ofpixsb2zX8nGkstsn42BM0FgU87yNbziFQJA1Zm7HURz0gRMeeZIvFbg+/+D/lG3K h38A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=8QvPQfPqGzB0oKXjFZcaYDm6ixlWe1C29u/C9HogwiU=; b=Upx3YxTHQKE9vqXPBmRmToyuU2zXQfFuKHzomxTs5ahS2yhULf/Tyxm+6r5dqDf/+X HlWvnWrHkB1fkHGYkf4YS1S1nBdFpbmmInfKcKqLRPwlS2Ddl3HVuvniyk8dqTN/Mkbg dCpahZQ52tbby0m51/o87KTI7zGvsD1swMu/zZcIuhQ78sJ4CTD6SbqHy/PFTlwDbuHt YVSDK8wsvrc0vlp6LT3NlzmNF/Yrf6nz07IrmxuFIvg0wL2BUutBhw7XpngRG+NgYDz/ QFemub2ZGq7CwUKxG5WUxhfCc41JqkJmPu0ehhQ8uncqwxcide1tQzt08oXP5lglKun9 VWew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=r89hOPJE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b68si254622pfd.345.2018.02.27.16.19.10; Tue, 27 Feb 2018 16:19:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=r89hOPJE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbeB1ARl (ORCPT + 99 others); Tue, 27 Feb 2018 19:17:41 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:24336 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890AbeB1AQs (ORCPT ); Tue, 27 Feb 2018 19:16:48 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-09.nifty.com with ESMTP id w1S0Fahm000353; Wed, 28 Feb 2018 09:15:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w1S0Fahm000353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519776938; bh=8QvPQfPqGzB0oKXjFZcaYDm6ixlWe1C29u/C9HogwiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r89hOPJEQED6veulSjtC9qqJm3ed7L4jrkyS8kKuoYI8yrnKbCQ6aRalTcUUw6/c1 9eNBjxFDPL6J6mxP9+zywi+qwgDjpiV4IqzqTqoLEbh+RhO4ntKjkT5hx7yGSCzlcj xSJVesctQt0ETNBR4a4VQdL9X2Sik3tUs5NGoIBGVQrB5s93BfUugEBROGaX0KcjYP JhUTp4K0ol9J262iCnMe/tyQB31O4+D29uZLibWh91m2KMxLjMbIuhRgQgeqXSQ0g9 DoCFzQagbM2cKQgGBjP63/z5ZRp0UObVxGeZyTpposDETPMaDlzIyKtDoBMZNLgvei UEoJBm0AWHuZQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Marc Herbert , Ulf Magnusson , Sam Ravnborg , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] kconfig: remove unneeded input_mode test in conf() Date: Wed, 28 Feb 2018 09:15:22 +0900 Message-Id: <1519776926-30459-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519776926-30459-1-git-send-email-yamada.masahiro@socionext.com> References: <1519776926-30459-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org conf() is never called for listnewconfig / olddefconfig. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- Changes in v2: None 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 4227d3b..1faa55f 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -358,9 +358,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