[PATCH 4/4] localmodconfig: Use my variable for loop in streamline_config.pl

From: Steven Rostedt
Date: Mon Oct 01 2012 - 09:38:34 EST


From: Bill Pemberton <wfp5p@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
---
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 22b66ca..39b6314 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -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);
--
1.7.10.4


Attachment: signature.asc
Description: This is a digitally signed message part