]> www.infradead.org Git - users/hch/misc.git/commitdiff
docs: kdoc: remove an extraneous strip() call
authorJonathan Corbet <corbet@lwn.net>
Thu, 7 Aug 2025 21:16:35 +0000 (15:16 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 11 Aug 2025 16:25:42 +0000 (10:25 -0600)
...the variable in question was already strip()ed at the top of the loop.

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-9-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py

index e11f3d6e9469c39491c52d937b2be80a8121abf2..0c279aa802a0c03eebe775e928cd40a72bc31f90 100644 (file)
@@ -703,7 +703,6 @@ class KernelDoc:
                                 newmember += f"{dtype}{s_id}.{name}{extra}; "
 
                         else:
-                            arg = arg.strip()
                             # Handle bitmaps
                             arg = KernRe(r':\s*\d+\s*').sub('', arg)