From patchwork Thu May 27 11:42:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Toralf_F=C3=B6rster?= X-Patchwork-Id: 102611 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4RBhKAY027291 for ; Thu, 27 May 2010 11:43:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933740Ab0E0LmP (ORCPT ); Thu, 27 May 2010 07:42:15 -0400 Received: from mail.gmx.net ([213.165.64.20]:44535 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S933528Ab0E0LmN convert rfc822-to-8bit (ORCPT ); Thu, 27 May 2010 07:42:13 -0400 Received: (qmail invoked by alias); 27 May 2010 11:42:11 -0000 Received: from e177120013.adsl.alicedsl.de (EHLO n22.localnet) [85.177.120.13] by mail.gmx.net (mp069) with SMTP; 27 May 2010 13:42:11 +0200 X-Authenticated: #5108953 X-Provags-ID: V01U2FsdGVkX18lxnI5ziUl5nYoGJ/nueEK1d3XBHZ4C4duezkjmK 32IUY81RFT2V0O From: Toralf =?iso-8859-1?q?F=F6rster?= To: rostedt@goodmis.org Subject: [PATCH] streamline_config.pl: use references rather than copied data structures Date: Thu, 27 May 2010 13:42:08 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34; KDE/4.4.3; i686; ; ) Cc: zippel@linux-m68k.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-Id: <201005271342.09066.toralf.foerster@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 11:43:20 +0000 (UTC) diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index afbd54a..574e68f 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -406,14 +406,14 @@ close(CIN); loop: foreach my $module (keys(%modules)) { if (defined($objects{$module})) { - my @arr = @{$objects{$module}}; - foreach my $conf (@arr) { + my $arr = $objects{$module}; + foreach my $conf (@{$arr}) { if (defined($setconfigs{$conf})) { next loop; } } print STDERR "module $module did not have configs"; - foreach my $conf (@arr) { + foreach my $conf (@{$arr}) { print STDERR " " , $conf; } print STDERR "\n";