[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <201005271342.09066.toralf.foerster@gmx.de>
Date: Thu, 27 May 2010 13:42:08 +0200
From: Toralf Förster <toralf.foerster@....de>
To: rostedt@...dmis.org
Cc: zippel@...ux-m68k.org, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] streamline_config.pl: use references rather than copied data structures
IMHO there's no need for a copy-by-value
Signed-off-by: Toralf Foerster <toralf.foerster@....de>
---
scripts/kconfig/streamline_config.pl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
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";
--
1.6.4.4
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists