diff mbox

streamline_config.pl: use references rather than copied data structures

Message ID 201005271342.09066.toralf.foerster@gmx.de (mailing list archive)
State New, archived
Headers show

Commit Message

Toralf Förster May 27, 2010, 11:42 a.m. UTC
None
diff mbox

Patch

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";