History

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.

Jonathan Corbet committed 1 year ago

Commit 08cd6551 parent 1e2a79c1 file · +0 −7Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/lib/kdoc/kdoc_parser.py+0−7
@@ -207,13 +207,6 @@ class KernelEntry: · 206 unmodified lines
207207 self.sectcheck += name + " "
208208 self.new_start_line = 0
209209
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−
217210 else:
218211 if name in self.sections and self.sections[name] != "":
219212 # Only warn on user-specified duplicate section names