]> git.baikalelectronics.ru Git - kernel.git/commit
ver_linux: Assign constant RE to variable name for clarity
authorAlexander Kapshuk <alexander.kapshuk@gmail.com>
Sat, 5 Jan 2019 17:09:23 +0000 (19:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 12:34:35 +0000 (13:34 +0100)
commit1eb614399d54dfb3a9effcc7791f9014f34c10f8
tree74ee264317a24e7bfbad66c327380462f28e286d
parentd5731ba75bd0115ba93899407ccda1797953f75e
ver_linux: Assign constant RE to variable name for clarity

The regular expression that matches the version number of a utility
being queried is used as a constant expression in the current
implementation. Assigning the RE in question to a variable gives it a
meaningful name that clearly expresses the intended use of the expression
without having to think about the details of implementation.

Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/ver_linux