aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6f2ce0cafe6f..4de3cc42fc50 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -228,9 +228,9 @@ if ($^V && $^V lt $minimum_perl_version) {
228 } 228 }
229} 229}
230 230
231#if no filenames are given, push '-' to read patch from stdin
231if ($#ARGV < 0) { 232if ($#ARGV < 0) {
232 print "$P: no input files\n"; 233 push(@ARGV, '-');
233 exit(1);
234} 234}
235 235
236sub hash_save_array_words { 236sub hash_save_array_words {