Skip to content

Commit d9a7a2b

Browse files
Luis R. Rodriguezsravnborg
authored andcommitted
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>
1 parent 7db86dc commit d9a7a2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/checkincludes.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
++$includedfiles{$1};
1414
}
1515
}
16+
17+
close(FILE);
1618

1719
foreach $filename (keys %includedfiles) {
1820
if ($includedfiles{$filename} > 1) {
1921
print "$file: $filename is included more than once.\n";
2022
}
2123
}
22-
23-
close(FILE);
2424
}

0 commit comments

Comments
 (0)