docs: kdoc: remove the brcount floor in process_proto_type()
authorJonathan Corbet <corbet@lwn.net>
Mon, 30 Jun 2025 16:03:28 +0000 (10:03 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 30 Jun 2025 16:03:28 +0000 (10:03 -0600)
commitbfa5bb3d104b0f2ffd25daa3b4900d54fe060285
treec0f54e22d16e5f1ab1106dd91ede7b857d0ed9a9
parent09b9297478a3da4d940af8ff8c5f8e27be4990e8
docs: kdoc: remove the brcount floor in process_proto_type()

Putting the floor under brcount does not change the output in any way, just
remove it.

Change the termination test from ==0 to <=0 to prevent infinite loops in
case somebody does something truly wacko in the code.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py