Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-5
-5
scripts/lib/kdoc/kdoc_parser.py
··· 1060 1060 purpose=self.entry.declaration_purpose) 1061 1061 return 1062 1062 1063 - # Handle nested parentheses or brackets 1064 - r = KernRe(r'(\(*.\)\s*|\[*.\]\s*);$') 1065 - while r.search(proto): 1066 - proto = r.sub('', proto) 1067 - 1068 1063 # Parse simple typedefs 1069 1064 r = KernRe(r'typedef.*\s+(\w+)\s*;') 1070 1065 if r.match(proto):