From patchwork Wed Jan 10 06:56:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 124024 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4924287qgn; Tue, 9 Jan 2018 22:57:47 -0800 (PST) X-Google-Smtp-Source: ACJfBov349wg9X1XQz/0O98YOGq0wabJC2LHW9JHcc+8CE48MGTnWY7lIU0JzuaWZFkS0SfkQa0t X-Received: by 10.99.142.76 with SMTP id k73mr8103093pge.89.1515567467389; Tue, 09 Jan 2018 22:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515567467; cv=none; d=google.com; s=arc-20160816; b=VJFfWj+iFd2gAtFqDnB761XO1PlnUz3cnb7j0jFz3qfFg3qXt0XgrI4CWij3oHnmty p75SDkm+FDdqoWKD/YsckKYd/wpwcDgnf5+ueBqjKrm+3W5Gx9JKMfxmSXqMy9FaB0VS bpBkMm0nMVgDjOASxTIevTwyWsI7E2hFhg4tJ7yChNFGZsIXrMmcRzNtnMQHpoxSZ//c iCtAC9ye4XThZZkC4Rp0NprnTwll6jktiBZ/2XDws1LVVoQh72r1TlcYL2/oBV/aKBuY CKwnyGxik3Xxu+IPBbd3rd9YMUfnwN3xwdxpb6qeAasMD323gU1XeRxtUU23nVZmsFwl r6WA== 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=S4wuIZ0nKzqSZHzp/Dn6OKE3P4LhAuvWTHU0sV8oD+c=; b=X3ZbauI0N3MUjgZDhwPzn1iYQytDusYpZWNnDL1JXdtY8yuYWtTmDKv0QNT8J7GiBa QfgXeMhmQfxa2/z3cWT18l1jMeXBVfj0aNXwk0IK0gOq3fu4Jx0YY9wNZzztAuu0H5QA x9LBdZskXIDwZbqtyAIzuI0Eg4OI7OEIx7XzbCNFmK8xl5/7CXKnvrxYqclD/P+F1W6O g9eC8eF17vXzCJ1ssC8Re0oO8JC02fBDCGnylxNhWswOX39PAj7RYYoV+VPGwMUP1Q2e f7xWiSU5Nyo7wH47r/IjBvgo1MWsbKk+bjOp1M1LdKYiQwSq/HRNgtSN9nDo/SHOO6JF BHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0xcREh44; 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 v11si3230390pgb.825.2018.01.09.22.57.47; Tue, 09 Jan 2018 22:57:47 -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=0xcREh44; 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 S1753978AbeAJG5h (ORCPT + 28 others); Wed, 10 Jan 2018 01:57:37 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:22693 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753542AbeAJG52 (ORCPT ); Wed, 10 Jan 2018 01:57:28 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w0A6uM2m020629; Wed, 10 Jan 2018 15:56:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w0A6uM2m020629 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1515567385; bh=S4wuIZ0nKzqSZHzp/Dn6OKE3P4LhAuvWTHU0sV8oD+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0xcREh44yoCOM40yrQ0gemjkZmSOtVRlbzUuvkaRv3GeEQZdmSCakaJel1oZoAhGB +slzPUM3V9YQDQJG5BddPMmkz58Bad14G9Ez806eAxMiy7KHMBAX5yUguJ6Axla0Xx gocCkB15HJO0GvYlFN0Ihh09qfkjeNoZNLXE7qxuDK040OpR3Imo1cEnpDiCpwu/n1 uc88RI6fyPRHy/coRNebNhxtmiJDNJH8vCYU1OvIk4yLaH2gQFGXl/JI8loFlQiT6Y F9wyRZ2INzhY5196iW/uWqCpZpUHpgei/+JxKhLnpd8VMUUui5FB12Y2XBorv04Ywx coD2JSShrgTkQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , Ulf Magnusson , Marc Herbert , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 4/6] kconfig: remove unneeded input_mode test in conf() Date: Wed, 10 Jan 2018 15:56:12 +0900 Message-Id: <1515567374-12722-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515567374-12722-1-git-send-email-yamada.masahiro@socionext.com> References: <1515567374-12722-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 --- scripts/kconfig/conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.7.4 Acked-by: Ulf Magnusson 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;