From: Stephen Hemminger Date: Wed, 12 Nov 2008 18:21:01 +0000 (-0800) Subject: tracing/fastboot: fix perlcritic warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68f96c0c889b55bf62eee98e859cb686f8850188;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tracing/fastboot: fix perlcritic warning 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 Signed-off-by: Ingo Molnar --- diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl index d2c61efc216f..a8635a10fef2 100644 --- a/scripts/bootgraph.pl +++ b/scripts/bootgraph.pl @@ -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) {