From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Date: Tue, 27 Aug 2019 13:49:09 -0700 Subject: [Intel-wired-lan] [PATCH] checkpatch: Allow consecutive close braces In-Reply-To: References: <20190823191421.3318-1-ffleming@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: checkpatch allows consecutive open braces, so it should also allow consecutive close braces. Signed-off-by: Joe Perches Acked-by: Jeff Kirsher --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 287fe73688f0..ac5e0f06e1af 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4687,7 +4687,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) {