OSDN Git Service

scripts: kernel-doc: reduce repeated regex expressions into variables
authorAditya Srivastava <yashsri421@gmail.com>
Fri, 14 May 2021 14:42:44 +0000 (20:12 +0530)
committerJonathan Corbet <corbet@lwn.net>
Mon, 17 May 2021 17:21:16 +0000 (11:21 -0600)
commite86bdb24375a810ea7993d64ed406a803db71225
treec47f3c59a232872cad851d576f1d3aff1e9da84a
parent2c5ff2caa4f8164e93a9bf035af9a2ad87cad9f2
scripts: kernel-doc: reduce repeated regex expressions into variables

There are some regex expressions in the kernel-doc script, which are used
repeatedly in the script.

Reduce such expressions into variables, which can be used everywhere.

A quick manual check found that no errors and warnings were added/removed
in this process.

Suggested-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
Link: https://lore.kernel.org/r/20210514144244.25341-1-yashsri421@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc