summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@Atheros.com>2009-09-18 12:49:25 -0700
committerSam Ravnborg <sam@ravnborg.org>2009-09-20 12:27:43 +0200
commitd9a7a2bd07ed3b838d95559d547061afcf3e45f6 (patch)
tree416e3f55370fbd424e0873fe1ed148cb9854c050
parent7db86dc97fb0c47af63e6b965e8ff37126050d25 (diff)
downloadop-kernel-dev-d9a7a2bd07ed3b838d95559d547061afcf3e45f6.zip
op-kernel-dev-d9a7a2bd07ed3b838d95559d547061afcf3e45f6.tar.gz
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>
-rwxr-xr-xscripts/checkincludes.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
index 8e6b716..32ebff6 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);
}
OpenPOWER on IntegriCloud