aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2018-07-17 16:31:06 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-07-18 17:50:22 +0300
commit55b8ccb80bee2eaf7932a5bbb7963544d8fc906b (patch)
tree9b67e6804470d7cd6eaaceecb48173824a9272f8
parent6add70a4ff916acb331b961bc230cf946fbe835a (diff)
fix code check warning using CC in code
Fix error when code check finds CC inside patch itself and wants to validate it as description note. ERROR: Unrecognized email address: '${CC}' Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index d5ffd1ddd..a0d189722 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2487,7 +2487,7 @@ sub process {
# Check the patch for a signoff:
if ($line =~ /^\s*signed-off-by:/i) {
$signoff++;
- $in_commit_log = 0;
+ #$in_commit_log = 0;
}
# Check if MAINTAINERS is being updated. If so, there's probably no need to
@@ -2497,7 +2497,7 @@ sub process {
}
# Check signature styles
- if (!$in_header_lines &&
+ if (!$in_header_lines && $in_commit_log &&
$line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {
my $space_before = $1;
my $sign_off = $2;