]> git.baikalelectronics.ru Git - kernel.git/commit
don't bother with explicit length argument for __lookup_constant()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 16 Dec 2019 18:45:41 +0000 (13:45 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Feb 2020 19:47:52 +0000 (14:47 -0500)
commit00804de56386f8d2b3a3b9e2859dbfec65c6ebd0
tree687392b53b9d246d3ec1193abcade23ad85186b5
parent35a67955b4a1d37bf8daba34d223ddbb1219714c
don't bother with explicit length argument for __lookup_constant()

Have the arrays of constant_table self-terminated (by NULL ->name
in the final entry).  Simplifies lookup_constant() and allows to
reuse the search for enum params as well.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs_context.c
fs/fs_parser.c
include/linux/fs_parser.h