]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: kdoc: rework the rewrite_struct_members() main loop
authorJonathan Corbet <corbet@lwn.net>
Thu, 7 Aug 2025 21:16:34 +0000 (15:16 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 11 Aug 2025 16:25:42 +0000 (10:25 -0600)
commitf8208676c1c85c0b91e726954c05f5859b890ccb
tree101fbd781692ceb1ee8be460302fa4c16731b14e
parent77e3c875f0a83d9192079e88d8569ac36c6b6bea
docs: kdoc: rework the rewrite_struct_members() main loop

Adopt a more Pythonic form for the main loop of this function, getting rid
of the "while True:" construction and making the actual loop invariant
explicit.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250807211639.47286-8-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py