diff options
author | Luis R. Rodriguez <lrodriguez@Atheros.com> | 2009-09-18 12:49:25 -0700 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 12:27:43 +0200 |
commit | d9a7a2bd07ed3b838d95559d547061afcf3e45f6 (patch) | |
tree | 416e3f55370fbd424e0873fe1ed148cb9854c050 /scripts/checkincludes.pl | |
parent | 7db86dc97fb0c47af63e6b965e8ff37126050d25 (diff) |
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/checkincludes.pl')
-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); } |