mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-03 04:59:12 +08:00
docs: kdoc: remove a bit of dead code
The type_param regex matches "@..." just fine, so the special-case branch for that in dump_section() is never executed. Just remove it. Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250627184000.132291-4-corbet@lwn.net
This commit is contained in:
@@ -207,13 +207,6 @@ class KernelEntry:
|
||||
self.sectcheck += name + " "
|
||||
self.new_start_line = 0
|
||||
|
||||
elif name == "@...":
|
||||
name = "..."
|
||||
self.parameterdescs[name] = contents
|
||||
self.sectcheck += name + " "
|
||||
self.parameterdesc_start_lines[name] = self.new_start_line
|
||||
self.new_start_line = 0
|
||||
|
||||
else:
|
||||
if name in self.sections and self.sections[name] != "":
|
||||
# Only warn on user-specified duplicate section names
|
||||
|
||||
Reference in New Issue
Block a user