diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 77bc0fef38d..5901bab4bf0 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1381,7 +1381,6 @@ sub process { my $stashrawline=""; my $subjectline=""; my $sublinenr=""; - my $blankline_flag=0; my $length; my $indent; @@ -1718,7 +1717,6 @@ sub process { if ($line =~ /^\s*signed-off-by:.*(quicinc|qualcomm)\.com/i) { WARN("invalid Signed-off-by identity\n" . $line ); } - $blankline_flag = 1; } #check the patch for invalid author credentials @@ -1726,13 +1724,6 @@ sub process { WARN("invalid author identity\n" . $line ); } -#check the patch for blank lines in the header - if($line =~ /^\s*$/ && $blankline_flag == 1) { - WARN("Blank lines should not appear in the header once signed off\n"); - } elsif($line =~ /^---$/) { - $blankline_flag = 0; - } - # Check for wrappage within a valid hunk of the file if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) { ERROR("CORRUPTED_PATCH",