diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0c9b11420279..a358af93cd7f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4150,7 +4150,7 @@ sub process { $fix) { fix_delete_line($fixlinenr, $rawline); my $fixed_line = $rawline; - $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*){(.*)$/; + $fixed_line =~ /(^..*$Type\s*$Ident\(.*\)\s*)\{(.*)$/; my $line1 = $1; my $line2 = $2; fix_insert_line($fixlinenr, ltrim($line1));