]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tracing/fastboot: fix perlcritic warning
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 12 Nov 2008 18:21:01 +0000 (10:21 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 18:22:57 +0000 (19:22 +0100)
Impact: cleanup

Fix the following warning from the perl syntax checking tool perlcritic.
This tool is a lint like tool that checks for perl best practices.

Loop iterator is not lexical at line 113, column 1.
See page 108 of PBP.  (Severity: 5)

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
scripts/bootgraph.pl

index d2c61efc216f4bd413dd271faa3aa62c736c6203..a8635a10fef28fa165df0aa4cb2ab545135042d3 100644 (file)
@@ -109,8 +109,8 @@ my $stylecounter = 0;
 my %rows;
 my $rowscount = 1;
 my @initcalls = sort { $start{$a} <=> $start{$b} } keys(%start);
-my $key;
-foreach $key (@initcalls) {
+
+foreach my $key (@initcalls) {
        my $duration = $end{$key} - $start{$key};
 
        if ($duration >= $threshold) {