docs: kdoc: remove the brcount floor in process_proto_type()
authorJonathan Corbet <corbet@lwn.net>
Thu, 3 Jul 2025 18:43:59 +0000 (12:43 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 8 Jul 2025 14:06:25 +0000 (08:06 -0600)
commit061a1c1a27c9ea7ae5d99f72b579d542e767a3e2
treee78873443c3db7da8a8d7ee5ed4012f91ac6fc1d
parent8078e0ed1f3f3bac776b412b0f85ada86f91fef0
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.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250703184403.274408-4-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py