summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 55277a8e1527..9ba4fc44112a 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -174,9 +174,9 @@ sub hash_save_array_words {
sub hash_show_words {
my ($hashRef, $prefix) = @_;
- if ($quiet == 0 && keys $hashRef) {
+ if ($quiet == 0 && keys %$hashRef) {
print "NOTE: $prefix message types:";
- foreach my $word (sort keys $hashRef) {
+ foreach my $word (sort keys %$hashRef) {
print " $word";
}
print "\n\n";