aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_item.py
diff options
context:
space:
mode:
authorJonathan Corbet <[email protected]>2025-07-02 19:55:56 +0000
committerJonathan Corbet <[email protected]>2025-07-15 19:43:30 +0000
commitbd5628bf60abd6f283d1fd8bdcff45c272971c6b (patch)
treea31bac3ffbab5869b30cb6aa36ea54e3a64c814c /scripts/lib/kdoc/kdoc_item.py
parentdocs: kdoc: straighten up dump_declaration() (diff)
downloadkernel-bd5628bf60abd6f283d1fd8bdcff45c272971c6b.tar.gz
kernel-bd5628bf60abd6f283d1fd8bdcff45c272971c6b.zip
docs: kdoc: directly access the always-there KdocItem fields
They are part of the interface, so use them directly. This allows the removal of the transitional __dict__ hack in KdocItem. Reviewed-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_item.py')
-rw-r--r--scripts/lib/kdoc/kdoc_item.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/lib/kdoc/kdoc_item.py b/scripts/lib/kdoc/kdoc_item.py
index ccabb448b5d4..b3b225764550 100644
--- a/scripts/lib/kdoc/kdoc_item.py
+++ b/scripts/lib/kdoc/kdoc_item.py
@@ -23,10 +23,7 @@ class KdocItem:
self.other_stuff = other_stuff
def get(self, key, default = None):
- ret = self.other_stuff.get(key, default)
- if ret == default:
- return self.__dict__.get(key, default)
- return ret
+ return self.other_stuff.get(key, default)
def __getitem__(self, key):
return self.get(key)