diff options
| author | 2025-09-08 16:32:10 -0600 | |
|---|---|---|
| committer | 2025-09-18 10:19:53 -0600 | |
| commit | 999a642d7e7d4241cc7dba942a13c67d0685284b (patch) | |
| tree | fad189c85cd68b11fd3392037f80038887664a5f | |
| parent | docs: kdoc: final dump_function() cleanups (diff) | |
| download | wireguard-linux-999a642d7e7d4241cc7dba942a13c67d0685284b.tar.xz wireguard-linux-999a642d7e7d4241cc7dba942a13c67d0685284b.zip | |
docs: kdoc: remove some dead code in dump_typedef()
The regex in this block of code makes no sense, and a quick test shows that
it never matches anything; simply delete the code.
No output changes.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
| -rw-r--r-- | scripts/lib/kdoc/kdoc_parser.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py index 5e41acfef7b8..7c739b495d58 100644 --- a/scripts/lib/kdoc/kdoc_parser.py +++ b/scripts/lib/kdoc/kdoc_parser.py @@ -1060,11 +1060,6 @@ class KernelDoc: purpose=self.entry.declaration_purpose) return - # Handle nested parentheses or brackets - r = KernRe(r'(\(*.\)\s*|\[*.\]\s*);$') - while r.search(proto): - proto = r.sub('', proto) - # Parse simple typedefs r = KernRe(r'typedef.*\s+(\w+)\s*;') if r.match(proto): |
