aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a521d493b0c8..c39ce0b663b4 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2048,7 +2048,7 @@ sub process {
2048 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) { 2048 $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) {
2049 my ($s, $c) = ($stat, $cond); 2049 my ($s, $c) = ($stat, $cond);
2050 2050
2051 if ($c =~ /\bif\s*\(.*[^<>!=]=[^=].*/) { 2051 if ($c =~ /\bif\s*\(.*[^<>!=]=[^=].*/s) {
2052 ERROR("do not use assignment in if condition\n" . $herecurr); 2052 ERROR("do not use assignment in if condition\n" . $herecurr);
2053 } 2053 }
2054 2054