mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
docs: kdoc: remove redundant comment stripping
By the time stuff gets to create_parameter_list(), comments have long since been stripped out, so we do not need to do it again here. Acked-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250814154035.328769-8-corbet@lwn.net
This commit is contained in:
@@ -493,9 +493,6 @@ class KernelDoc:
|
||||
args = arg_expr.sub(r"\1#", args)
|
||||
|
||||
for arg in args.split(splitter):
|
||||
# Strip comments
|
||||
arg = KernRe(r'/\*.*\*/').sub('', arg)
|
||||
|
||||
# Ignore argument attributes
|
||||
arg = KernRe(r'\sPOS0?\s').sub(' ', arg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user