From patchwork Wed Jan 10 06:56:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 124028 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4925844qgn; Tue, 9 Jan 2018 23:00:00 -0800 (PST) X-Google-Smtp-Source: ACJfBovSJzQllPLYyrP0AbL4ykCro+Jl28OqNyLC9XGo9m+DrG2WvqmJiDW4YtXu3N9jU+DvNVcc X-Received: by 10.99.107.195 with SMTP id g186mr13421222pgc.97.1515567600591; Tue, 09 Jan 2018 23:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515567600; cv=none; d=google.com; s=arc-20160816; b=TsJ8n/QxrntSv548+BKBpWPWoJk0lxlid/x0v883ect6eRmRGv/D0FbrXT8TtbG+Ew VlcBgj0Xs4E4GtwWoGwn+jien4jWJuZ+RljuWR3162MNaAA1vsQUCi5PE8qVA36R9Ac8 avBioxFLGQAcfoWpM+5B79kIjq+BXyXRTPBYQyhGyk0EZM6297yHLnw02fNeau9O47+g 0VLsqFDjzGEOXiXTcPA86Njh1qJOIMOD8bWvvCGV14qgRsqhFD7Xsfwr6e71SOvGIToT oBQmAKDH5QxtG+VKhk/4Wh54H5Bso1mXsQ5wVJ9MUz2Ojw8aWU26N7TNE73eXY7rGgop WrTw== 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=9/ImEW7KAYC5SxhQV7mjem7PAGowCp06YeFrs3dqlJ4=; b=JmaSFJmUUohZ7uQL9ji65fUdR4OtDUaxXYLqTv97RoEFLQQyPIg0SL/ZVSE3jZxnmZ GIdQ4umxdITVM7SJ6/P1Xq/cWWiswfu/5aYqb9AStz864yc2OYQhGJWXuEPnzX1VMrls 91VRllD458sLBx2WGOCEI6ROc/9kwbOV8d4SWwgzHstY76lQEfcNn+iQB42TxM/4hh71 RfgUVuX/aJfwBAk7yrANiqic+Kjv52aVxv1YIYgklrVT0NUaEHowVZalT6IyfnoM1n+t tQKXUwmG+SlNBhlfQYylr3+eeemCLj6uNiiRpSEYJMdOHp7XcDLrLVIwK2bKOn95QaTR BXug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=O1qmsdtm; 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 w63si11286413pfd.289.2018.01.09.23.00.00; Tue, 09 Jan 2018 23:00:00 -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=O1qmsdtm; 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 S1753666AbeAJG5a (ORCPT + 28 others); Wed, 10 Jan 2018 01:57:30 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:22637 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbeAJG51 (ORCPT ); Wed, 10 Jan 2018 01:57:27 -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 w0A6uM2n020629; Wed, 10 Jan 2018 15:56:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w0A6uM2n020629 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1515567386; bh=9/ImEW7KAYC5SxhQV7mjem7PAGowCp06YeFrs3dqlJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O1qmsdtm8x2myqYz9+pFCBw6bOJok9LdmlridJTuIqj+BMxW/G19KDSIpxgweHjh2 BXwxFCBa/GgLRSExDevtp2ibMRjVEjqtRhYQf9aJGuBn4nUJ3rEE6BwqtBnLDvnxKN 2jvIm8odhkP3WmaVzzivPrS/JycQuwjek37anKpfbkWtWXm5vzsIyHP/5JrPHJSXup skqhj5doui+CZzpaYAH7uEzo7OC7J5sNBgntOzfgqYVqVJPgCggk2prqlSdb8UqP96 03PmjQiHTT4k3Cp8Jx0yGdjvqSfgc/27MvNsn/ju3GaCNPH5KmJAeCDGWsvJanper/ 9ffnnNLjDxYww== 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 5/6] kconfig: remove redundant input_mode test for check_conf() loop Date: Wed, 10 Jan 2018 15:56:13 +0900 Message-Id: <1515567374-12722-5-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 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 --- scripts/kconfig/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Acked-by: Ulf Magnusson diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 693cd5f..1d2ed3e 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 alldefconfig: case defconfig: