summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2025-06-06 10:34:32 -0600
committerJonathan Corbet <corbet@lwn.net>2025-06-09 14:37:16 -0600
commit42592bd46dded5fab5af1d5e04c9b17cbb4bca6d (patch)
tree52f9f5e8ae2941df9dcb5d8035c584045034b4bd /scripts/lib
parentcef8c781ca71ddd0777d639775e66f8630359342 (diff)
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
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/kdoc/kdoc_parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py
index 1a6c6865b2c5..f8871f6a2638 100644
--- a/scripts/lib/kdoc/kdoc_parser.py
+++ b/scripts/lib/kdoc/kdoc_parser.py
@@ -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)