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 cb2dac37aaff..ba105a848396 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1669,8 +1669,8 @@ sub process { | |||
1669 | } | 1669 | } |
1670 | 1670 | ||
1671 | # check for initialisation to aggregates open brace on the next line | 1671 | # check for initialisation to aggregates open brace on the next line |
1672 | if ($prevline =~ /$Declare\s*$Ident\s*=\s*$/ && | 1672 | if ($line =~ /^.\s*{/ && |
1673 | $line =~ /^.\s*{/) { | 1673 | $prevline =~ /(?:^|[^=])=\s*$/) { |
1674 | ERROR("that open brace { should be on the previous line\n" . $hereprev); | 1674 | ERROR("that open brace { should be on the previous line\n" . $hereprev); |
1675 | } | 1675 | } |
1676 | 1676 | ||