Received: by 10.223.185.116 with SMTP id b49csp5576730wrg; Tue, 27 Feb 2018 16:18:57 -0800 (PST) X-Google-Smtp-Source: AH8x226eEE9dus6VLxOMYQhF3uiVSV27RoRW8i8YyIuoP6ll1xgtOzuuvwZWT5IVLe3gsKY1H3sn X-Received: by 2002:a17:902:7485:: with SMTP id h5-v6mr16282159pll.236.1519777137827; Tue, 27 Feb 2018 16:18:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519777137; cv=none; d=google.com; s=arc-20160816; b=vikJ3cNBNgsKc2jw6l+97XkEB1lwOYwndMu9BG3kfJy/ITnjVXGhHgRc3ZwwavOU5j Mxvsp90hSV1cQGDELAvLxWfMISWIhWN2VESp6PIBLQyJGYC3Mz8kkHmfj0FS9hSdTuoN CrqWMTUrpdZltxbZtuH4G9mmbOsdbqLKpxoCGTssliGG5125Orj0IS2fJn626u+KbhuO OBCMsD81dCYFUgcme4FNsfnoxhI8j0IjqPZBqWH2lKUuiEcnj526gbu2sK/+cXOgtQ7r SAhlUdVM6k9BsOlBj2TCdCtUqIWI4lQYDWIrg5/UkD7VnUOsh531+eClSOmFcdNT/LmM O3mw== 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=63zj14JnX2Pb9Ksef74bjBN++xc6KgvLl2R16nhUpWg=; b=caoUBHlvgurGOtI7O9uuamKnvC/+Wki3MDIkbutF/4QDSFiLDDQjOC1OqfT1LuQs2M +bTUX/AoZ588WQM3Tf0n1lTWC3yVd8Pg9nLWNmFcxLRcD70t+x5ywaICnF2bkqcsqSEe ad6mSPjviiLN4gMNSLA9oBfmHvvVMm6BHdFAXROtIA98XuB+gSYPEHiiB6WCDLQ//KOi QkRYcUHRrPMMhUqhJnD5eunqhHD5HpjeNuFKWhJSKpoXd7v4zdegcKKuQLATblxQ6Ta0 tvh6MO3PYqDvA/vmVWw9rFMwHGl4LT6zN8ELT/cW1L4J8Xr1uzeqWFj0FhHaJ1VEgoJh uB/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mz0Y9n7E; 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 q128si208965pga.833.2018.02.27.16.18.43; Tue, 27 Feb 2018 16:18:57 -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=mz0Y9n7E; 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 S1751947AbeB1AQt (ORCPT + 99 others); Tue, 27 Feb 2018 19:16:49 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:24306 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbeB1AQr (ORCPT ); Tue, 27 Feb 2018 19:16:47 -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 w1S0Fahn000353; Wed, 28 Feb 2018 09:15:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w1S0Fahn000353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519776939; bh=63zj14JnX2Pb9Ksef74bjBN++xc6KgvLl2R16nhUpWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mz0Y9n7EqVIcnaR3N/CEye7m+jx1ztkzSbdySqUdl796GLTBkPyMRY28Ai2qqZa1y FAc9codvosW3PI+PtRQthszGRcb7mXA3NBCRGNrQSddTAATXp4LYydMc+Z7YB90qdt F9lBaDIWpPPI0QWwQxyNqcCkLLcTJEkhoCVrP5hr73z4XbC43CdIk1+aya5jG21j51 uLAppDeqexq9fMuu86sxIy75XWf4Zcq9b4gDJfzslVq5jkLi0wawGsi0YJPo1Qwolz b+JsDAcwPU4T5nsFoPPoQKXneRIE87tHt2MPV1E4cmXGYENqCn6gii7It9UNZVXbRD 37zLz8yTYPpIg== 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 3/6] kconfig: remove redundant input_mode test for check_conf() loop Date: Wed, 28 Feb 2018 09:15:23 +0900 Message-Id: <1519776926-30459-4-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 check_conf() never increments conf_cnt for listnewconfig, so conf_cnt is always zero. In other words, conf_cnt is not zero, "input_mode != listnewconfig" is met. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- Changes in v2: None scripts/kconfig/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 1faa55f..59656d3 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -669,7 +669,7 @@ int main(int ac, char **av) do { conf_cnt = 0; check_conf(&rootmenu); - } while (conf_cnt && input_mode != listnewconfig); + } while (conf_cnt); break; case olddefconfig: default: -- 2.7.4