Skip to content

Commit 00fa9bc

Browse files
author
Jonathan Corbet
committed
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 <[email protected]>
1 parent 999a642 commit 00fa9bc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/lib/kdoc/kdoc_parser.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,6 @@ def dump_typedef(self, ln, proto):
10341034
typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args)
10351035
typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args)
10361036

1037-
# Strip comments
1038-
proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto)
1039-
10401037
# Parse function typedef prototypes
10411038
for r in [typedef1, typedef2]:
10421039
if not r.match(proto):

0 commit comments

Comments
 (0)