tools/scripts/checkpatch.pl: fix unescaped brace
[fw/openocd] / tools / scripts / checkpatch.pl
index 92befc6f8f6c19c667b8343ee9fb539f701ae091..b977d361f7dcf5648d4a98b3b8209cf84e36344a 100755 (executable)
@@ -2224,7 +2224,7 @@ sub process {
 
 # function brace can't be on same line, except for #defines of do while,
 # or if closed on same line
-               if (($line=~/$Type\s*$Ident\(.*\).*\s{/) and
+               if (($line=~/$Type\s*$Ident\(.*\).*\s\{/) and
                    !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) {
                        ERROR("OPEN_BRACE",
                              "open brace '{' following function declarations go on the next line\n" . $herecurr);