diff options
author | Allen Hubbe <allenbh@gmail.com> | 2016-08-02 17:04:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-02 19:35:13 -0400 |
commit | 45107ff6d5265b9786c62b694140d839bc3d2433 (patch) | |
tree | 5b432ec4d4b36db22808073706127f9ab2fc521a | |
parent | ed43c4e58a6d3061e3329c41d7b880f11541245a (diff) |
checkpatch: if no filenames then read stdin
If no filenames are given, then read the patch from stdin.
Link: http://lkml.kernel.org/r/a8784f291ccb5067361992bf5d41ff6cfb0ce5cb.1469830917.git.allenbh@gmail.com
Signed-off-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
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 | ||
231 | if ($#ARGV < 0) { | 232 | if ($#ARGV < 0) { |
232 | print "$P: no input files\n"; | 233 | push(@ARGV, '-'); |
233 | exit(1); | ||
234 | } | 234 | } |
235 | 235 | ||
236 | sub hash_save_array_words { | 236 | sub hash_save_array_words { |