checkpatch: allow consecutive close braces
[linux-2.6-microblaze.git] / scripts / checkpatch.pl
index 1f85a3a..7603711 100755 (executable)
@@ -4673,7 +4673,7 @@ sub process {
 
 # closing brace should have a space following it when it has anything
 # on the line
-               if ($line =~ /}(?!(?:,|;|\)))\S/) {
+               if ($line =~ /}(?!(?:,|;|\)|\}))\S/) {
                        if (ERROR("SPACING",
                                  "space required after that close brace '}'\n" . $herecurr) &&
                            $fix) {