lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] checkpatch: remove unneeded or ("|")
Date
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 <borntraeger@de.ibm.com>
---
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


\
 
 \ /
  Last update: 2015-03-12 15:21    [W:1.488 / U:23.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site