From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754193AbbCLOHc (ORCPT ); Thu, 12 Mar 2015 10:07:32 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:38353 "EHLO e06smtp15.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752663AbbCLOHb (ORCPT ); Thu, 12 Mar 2015 10:07:31 -0400 From: Christian Borntraeger To: Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, Christian Borntraeger Subject: [PATCH] checkpatch: remove unneeded or ("|") Date: Thu, 12 Mar 2015 15:07:49 +0100 Message-Id: <1426169269-15332-1-git-send-email-borntraeger@de.ibm.com> X-Mailer: git-send-email 2.3.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15031214-0021-0000-0000-0000033564D1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org while porting commit 89a883530fe7 ("checkpatch: ## is not a valid modifier") to QEMU, Peter Maydell noticed that the | at the end of the list is not necessary. Lets get rid of it in kernel checkpatch.pl Signed-off-by: Christian Borntraeger --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d124359..403266d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1550,7 +1550,7 @@ sub possible { asm|__asm__| do| \#| - \#\#| + \#\# )(?:\s|$)| ^(?:typedef|struct|enum)\b )}x; -- 2.3.0