Commit d9a7a2bd authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Sam Ravnborg

checkincludes.pl: close file as soon as we're done with it

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 7db86dc9
...@@ -13,12 +13,12 @@ foreach $file (@ARGV) { ...@@ -13,12 +13,12 @@ foreach $file (@ARGV) {
++$includedfiles{$1}; ++$includedfiles{$1};
} }
} }
close(FILE);
foreach $filename (keys %includedfiles) { foreach $filename (keys %includedfiles) {
if ($includedfiles{$filename} > 1) { if ($includedfiles{$filename} > 1) {
print "$file: $filename is included more than once.\n"; print "$file: $filename is included more than once.\n";
} }
} }
close(FILE);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment