aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a0808e46c6fe..ea6d0f3fc057 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -6096,7 +6096,6 @@ sub process {
6096 } 6096 }
6097 if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ && 6097 if ($r1 !~ /^sizeof\b/ && $r2 =~ /^sizeof\s*\S/ &&
6098 !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) { 6098 !($r1 =~ /^$Constant$/ || $r1 =~ /^[A-Z_][A-Z0-9_]*$/)) {
6099 my $ctx = '';
6100 my $herectx = $here . "\n"; 6099 my $herectx = $here . "\n";
6101 my $cnt = statement_rawlines($stat); 6100 my $cnt = statement_rawlines($stat);
6102 for (my $n = 0; $n < $cnt; $n++) { 6101 for (my $n = 0; $n < $cnt; $n++) {
@@ -6184,7 +6183,6 @@ sub process {
6184 if ($^V && $^V ge 5.10.0 && 6183 if ($^V && $^V ge 5.10.0 &&
6185 defined $stat && 6184 defined $stat &&
6186 $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) { 6185 $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) {
6187 my $ctx = '';
6188 my $herectx = $here . "\n"; 6186 my $herectx = $here . "\n";
6189 my $cnt = statement_rawlines($stat); 6187 my $cnt = statement_rawlines($stat);
6190 for (my $n = 0; $n < $cnt; $n++) { 6188 for (my $n = 0; $n < $cnt; $n++) {