From: Luis R. Rodriguez Date: Fri, 18 Sep 2009 19:49:25 +0000 (-0700) Subject: checkincludes.pl: close file as soon as we're done with it X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d9a7a2bd07ed3b838d95559d547061afcf3e45f6;p=deliverable%2Flinux.git checkincludes.pl: close file as soon as we're done with it Signed-off-by: Luis R. Rodriguez Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg --- diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl index 8e6b716c191c..32ebff659fcc 100755 --- a/scripts/checkincludes.pl +++ b/scripts/checkincludes.pl @@ -13,12 +13,12 @@ foreach $file (@ARGV) { ++$includedfiles{$1}; } } + + close(FILE); foreach $filename (keys %includedfiles) { if ($includedfiles{$filename} > 1) { print "$file: $filename is included more than once.\n"; } } - - close(FILE); }