mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 17:18:25 +02:00
docs: kdoc: remove a useless empty capture group
The is_define_proto case in dump_function() uses a regex with an empty capture group - () - that has no use; just take it out. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
fee63c8f10
commit
08b5228cf4
1 changed files with 2 additions and 2 deletions
|
|
@ -972,11 +972,11 @@ class KernelDoc:
|
|||
found = False
|
||||
|
||||
if is_define_proto:
|
||||
r = KernRe(r'^()(' + name + r')\s+')
|
||||
r = KernRe(r'^(' + name + r')\s+')
|
||||
|
||||
if r.search(prototype):
|
||||
return_type = ''
|
||||
declaration_name = r.group(2)
|
||||
declaration_name = r.group(1)
|
||||
func_macro = True
|
||||
|
||||
found = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue