diff options
| author | Jonathan Corbet <corbet@lwn.net> | 2025-09-08 16:49:58 -0600 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2025-09-18 10:19:54 -0600 |
| commit | 00fa9bc4e93cb336575a5f2c1da90d2443ff14c8 (patch) | |
| tree | 8940bec426ee0be4beb2e2c5fc84184e45aac510 /scripts | |
| parent | 999a642d7e7d4241cc7dba942a13c67d0685284b (diff) | |
| download | linux-00fa9bc4e93cb336575a5f2c1da90d2443ff14c8.tar.gz | |
docs: kdoc: remove redundant comment stripping in dump_typedef()
By the time we get here, comments have long since been stripped out; there
is no need to do it again.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lib/kdoc/kdoc_parser.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py index 7c739b495d58ea..ad9df0536bbf49 100644 --- a/scripts/lib/kdoc/kdoc_parser.py +++ b/scripts/lib/kdoc/kdoc_parser.py @@ -1034,9 +1034,6 @@ class KernelDoc: typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args) typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args) - # Strip comments - proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto) - # Parse function typedef prototypes for r in [typedef1, typedef2]: if not r.match(proto): |
