diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d2464002bb40..5deee8bd0bae 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -3062,6 +3062,12 @@ sub process { | |||
| 3062 | } | 3062 | } |
| 3063 | } | 3063 | } |
| 3064 | 3064 | ||
| 3065 | # check for assignments on the start of a line | ||
| 3066 | if ($sline =~ /^\+\s+($Assignment)[^=]/) { | ||
| 3067 | CHK("ASSIGNMENT_CONTINUATIONS", | ||
| 3068 | "Assignment operator '$1' should be on the previous line\n" . $hereprev); | ||
| 3069 | } | ||
| 3070 | |||
| 3065 | # check for && or || at the start of a line | 3071 | # check for && or || at the start of a line |
| 3066 | if ($rawline =~ /^\+\s*(&&|\|\|)/) { | 3072 | if ($rawline =~ /^\+\s*(&&|\|\|)/) { |
| 3067 | CHK("LOGICAL_CONTINUATIONS", | 3073 | CHK("LOGICAL_CONTINUATIONS", |
