]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
localmodconfig: Use my variable for loop in streamline_config.pl
authorBill Pemberton <wfp5p@virginia.edu>
Thu, 9 Aug 2012 13:23:23 +0000 (09:23 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 16 Aug 2012 20:09:48 +0000 (16:09 -0400)
perlcritic complains about $kconfig being reused in the foreach loop
at the end of read_kconfig.  Change it to a my variable.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl

index 22b66cada779bb3c072e53f9ffac273a2350ccc6..39b6314fe634dd461f5b9c8e71f3409633c0a0b6 100644 (file)
@@ -252,7 +252,7 @@ sub read_kconfig {
     close($kinfile);
 
     # read in any configs that were found.
-    foreach $kconfig (@kconfigs) {
+    foreach my $kconfig (@kconfigs) {
        if (!defined($read_kconfigs{$kconfig})) {
            $read_kconfigs{$kconfig} = 1;
            read_kconfig($kconfig);