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 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

-7
-7
scripts/lib/kdoc/kdoc_parser.py
··· 207 207 self.sectcheck += name + " " 208 208 self.new_start_line = 0 209 209 210 - elif name == "@...": 211 - name = "..." 212 - self.parameterdescs[name] = contents 213 - self.sectcheck += name + " " 214 - self.parameterdesc_start_lines[name] = self.new_start_line 215 - self.new_start_line = 0 216 - 217 210 else: 218 211 if name in self.sections and self.sections[name] != "": 219 212 # Only warn on user-specified duplicate section names