aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 15a590425129..b9e9ee1315b7 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1686,8 +1686,8 @@ sub process {
1686 # Modifiers should have spaces. 1686 # Modifiers should have spaces.
1687 $to =~ s/(\b$Modifier$)/$1 /; 1687 $to =~ s/(\b$Modifier$)/$1 /;
1688 1688
1689 #print "from<$from> to<$to>\n"; 1689 #print "from<$from> to<$to> ident<$ident>\n";
1690 if ($from ne $to) { 1690 if ($from ne $to && $ident !~ /^$Modifier$/) {
1691 ERROR("\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr); 1691 ERROR("\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr);
1692 } 1692 }
1693 } 1693 }