diff options
author | Luis R. Rodriguez <lrodriguez@Atheros.com> | 2009-09-18 21:49:25 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 12:27:43 +0200 |
commit | d9a7a2bd07ed3b838d95559d547061afcf3e45f6 (patch) | |
tree | 416e3f55370fbd424e0873fe1ed148cb9854c050 /scripts | |
parent | ctags: usability fix (diff) | |
download | linux-d9a7a2bd07ed3b838d95559d547061afcf3e45f6.tar.xz linux-d9a7a2bd07ed3b838d95559d547061afcf3e45f6.zip |
checkincludes.pl: close file as soon as we're done with it
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkincludes.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |