lkml.org 
[lkml]   [2012]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 4/4] localmodconfig: Use my variable for loop in streamline_config.pl
    From: Bill Pemberton <wfp5p@virginia.edu>

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

    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2012-10-01 16:21    [W:4.738 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site