From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752290AbcDKAHM (ORCPT ); Sun, 10 Apr 2016 20:07:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:42307 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbcDKAHH (ORCPT ); Sun, 10 Apr 2016 20:07:07 -0400 From: Benjamin Poirier To: Steven Rostedt Cc: Michal Marek , joeyli , "Yann E . MORIN " , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] localmodconfig: Add missing $ to reference a variable Date: Sun, 10 Apr 2016 17:06:32 -0700 Message-Id: <1460333193-16361-3-git-send-email-bpoirier@suse.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1460333193-16361-1-git-send-email-bpoirier@suse.com> References: <20160410235234.GA13689@f1.synalogic.ca> <1460333193-16361-1-git-send-email-bpoirier@suse.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That is clearly what the original intention was. This does not change the output .config but it prevents some useless processing. ! eq "m" is changed to the simpler eq "y"; symbols with values other than m|y are not included in %orig_configs. Signed-off-by: Benjamin Poirier --- scripts/kconfig/streamline_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index f06972a..bbc160c 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -454,7 +454,7 @@ sub parse_config_depends $p =~ s/^[^$valid]*[$valid]+//; # We only need to process if the depend config is a module - if (!defined($orig_configs{$conf}) || !$orig_configs{conf} eq "m") { + if (!defined($orig_configs{$conf}) || $orig_configs{$conf} eq "y") { next; } -- 2.7.4