mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
docs: kdoc: remove the section_intro variable
It is only used in one place, so just put the constant string "Introduction" there so people don't have to go looking for it. Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250606163438.229916-4-corbet@lwn.net
This commit is contained in:
parent
cef8c781ca
commit
42592bd46d
|
|
@ -203,7 +203,6 @@ class KernelDoc:
|
|||
|
||||
# Section names
|
||||
|
||||
section_intro = "Introduction"
|
||||
section_context = "Context"
|
||||
section_return = "Return"
|
||||
|
||||
|
|
@ -1215,7 +1214,7 @@ class KernelDoc:
|
|||
self.entry.new_start_line = ln
|
||||
|
||||
if not doc_block.group(1):
|
||||
self.entry.section = self.section_intro
|
||||
self.entry.section = "Introduction"
|
||||
else:
|
||||
self.entry.section = doc_block.group(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user