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: simplify the PROTO continuation logic

Remove the unneeded "cont" variable and tighten up the code slightly.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250606163438.229916-2-corbet@lwn.net

+1 -6
+1 -6
scripts/lib/kdoc/kdoc_parser.py
··· 1688 1688 Besides parsing kernel-doc tags, it also parses export symbols. 1689 1689 """ 1690 1690 1691 - cont = False 1692 1691 prev = "" 1693 1692 prev_ln = None 1694 1693 export_table = set() ··· 1703 1704 if self.state == state.PROTO: 1704 1705 if line.endswith("\\"): 1705 1706 prev += line.rstrip("\\") 1706 - cont = True 1707 - 1708 1707 if not prev_ln: 1709 1708 prev_ln = ln 1710 - 1711 1709 continue 1712 1710 1713 - if cont: 1711 + if prev: 1714 1712 ln = prev_ln 1715 1713 line = prev + line 1716 1714 prev = "" 1717 - cont = False 1718 1715 prev_ln = None 1719 1716 1720 1717 self.config.log.debug("%d %s%s: %s",