diff options
author | Luis R. Rodriguez <lrodriguez@Atheros.com> | 2009-09-18 15:49:25 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 06:27:43 -0400 |
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) { | |||
13 | ++$includedfiles{$1}; | 13 | ++$includedfiles{$1}; |
14 | } | 14 | } |
15 | } | 15 | } |
16 | |||
17 | close(FILE); | ||
16 | 18 | ||
17 | foreach $filename (keys %includedfiles) { | 19 | foreach $filename (keys %includedfiles) { |
18 | if ($includedfiles{$filename} > 1) { | 20 | if ($includedfiles{$filename} > 1) { |
19 | print "$file: $filename is included more than once.\n"; | 21 | print "$file: $filename is included more than once.\n"; |
20 | } | 22 | } |
21 | } | 23 | } |
22 | |||
23 | close(FILE); | ||
24 | } | 24 | } |