checkincludes.pl: close file as soon as we're done with it
Luis R. Rodriguez [Fri, 18 Sep 2009 19:49:25 +0000 (12:49 -0700)]
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>

scripts/checkincludes.pl

index 8e6b716..32ebff6 100755 (executable)
@@ -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);
 }