Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -2
+2 -2
scripts/lib/kdoc/kdoc_parser.py
··· 972 972 found = False 973 973 974 974 if is_define_proto: 975 - r = KernRe(r'^()(' + name + r')\s+') 975 + r = KernRe(r'^(' + name + r')\s+') 976 976 977 977 if r.search(prototype): 978 978 return_type = '' 979 - declaration_name = r.group(2) 979 + declaration_name = r.group(1) 980 980 func_macro = True 981 981 982 982 found = True