diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a103f4fc30a2..ab12e3040abb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -3555,7 +3555,7 @@ sub process { | |||
| 3555 | $fixedline =~ s/\s*=\s*$/ = {/; | 3555 | $fixedline =~ s/\s*=\s*$/ = {/; |
| 3556 | fix_insert_line($fixlinenr, $fixedline); | 3556 | fix_insert_line($fixlinenr, $fixedline); |
| 3557 | $fixedline = $line; | 3557 | $fixedline = $line; |
| 3558 | $fixedline =~ s/^(.\s*){\s*/$1/; | 3558 | $fixedline =~ s/^(.\s*)\{\s*/$1/; |
| 3559 | fix_insert_line($fixlinenr, $fixedline); | 3559 | fix_insert_line($fixlinenr, $fixedline); |
| 3560 | } | 3560 | } |
| 3561 | } | 3561 | } |
| @@ -3896,7 +3896,7 @@ sub process { | |||
| 3896 | my $fixedline = rtrim($prevrawline) . " {"; | 3896 | my $fixedline = rtrim($prevrawline) . " {"; |
| 3897 | fix_insert_line($fixlinenr, $fixedline); | 3897 | fix_insert_line($fixlinenr, $fixedline); |
| 3898 | $fixedline = $rawline; | 3898 | $fixedline = $rawline; |
| 3899 | $fixedline =~ s/^(.\s*){\s*/$1\t/; | 3899 | $fixedline =~ s/^(.\s*)\{\s*/$1\t/; |
| 3900 | if ($fixedline !~ /^\+\s*$/) { | 3900 | if ($fixedline !~ /^\+\s*$/) { |
| 3901 | fix_insert_line($fixlinenr, $fixedline); | 3901 | fix_insert_line($fixlinenr, $fixedline); |
| 3902 | } | 3902 | } |
| @@ -4385,7 +4385,7 @@ sub process { | |||
| 4385 | if (ERROR("SPACING", | 4385 | if (ERROR("SPACING", |
| 4386 | "space required before the open brace '{'\n" . $herecurr) && | 4386 | "space required before the open brace '{'\n" . $herecurr) && |
| 4387 | $fix) { | 4387 | $fix) { |
| 4388 | $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\))){/$1 {/; | 4388 | $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\)))\{/$1 {/; |
| 4389 | } | 4389 | } |
| 4390 | } | 4390 | } |
| 4391 | 4391 | ||
