summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2025-07-01 15:54:09 -0600
committerJonathan Corbet <corbet@lwn.net>2025-07-02 14:14:31 -0600
commit703f9074a8e10ac3fe939025233acb7c47529608 (patch)
treea0da0a1e1ccff75d145cfcc4d1e9e2fd5d802167 /scripts/lib/kdoc/kdoc_files.py
parent60016e0116b8d33f95e797b011799e717766ec13 (diff)
docs: kdoc: simplify the output-item passing
Since our output items contain their name, we don't need to pass it separately. Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
-rw-r--r--scripts/lib/kdoc/kdoc_files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/kdoc/kdoc_files.py b/scripts/lib/kdoc/kdoc_files.py
index 9be4a64df71d..9e09b45b02fa 100644
--- a/scripts/lib/kdoc/kdoc_files.py
+++ b/scripts/lib/kdoc/kdoc_files.py
@@ -275,8 +275,8 @@ class KernelFiles():
self.config.log.warning("No kernel-doc for file %s", fname)
continue
- for name, arg in self.results[fname]:
- m = self.out_msg(fname, name, arg)
+ for arg in self.results[fname]:
+ m = self.out_msg(fname, arg.name, arg)
if m is None:
ln = arg.get("ln", 0)