diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index eced9b303995..f43d95a25712 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -4531,11 +4531,11 @@ sub process { | |||
| 4531 | 4531 | ||
| 4532 | #need space before brace following if, while, etc | 4532 | #need space before brace following if, while, etc |
| 4533 | if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) || | 4533 | if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) || |
| 4534 | $line =~ /do\{/) { | 4534 | $line =~ /\b(?:else|do)\{/) { |
| 4535 | if (ERROR("SPACING", | 4535 | if (ERROR("SPACING", |
| 4536 | "space required before the open brace '{'\n" . $herecurr) && | 4536 | "space required before the open brace '{'\n" . $herecurr) && |
| 4537 | $fix) { | 4537 | $fix) { |
| 4538 | $fixed[$fixlinenr] =~ s/^(\+.*(?:do|\)))\{/$1 {/; | 4538 | $fixed[$fixlinenr] =~ s/^(\+.*(?:do|else|\)))\{/$1 {/; |
| 4539 | } | 4539 | } |
| 4540 | } | 4540 | } |
| 4541 | 4541 | ||
