diff options
| author | Zijun Hu <quic_zijuhu@quicinc.com> | 2025-04-10 19:45:30 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-04-14 13:05:40 +0200 |
| commit | 1d17057d2166a192b3fad358a20c93fa3e994ef8 (patch) | |
| tree | df7d9b2eee3c06ee75d992dee8deae866c0f794e /fs/fs_parser.c | |
| parent | 916148d24d7722d7f43542f8d84c04e46f9f48c4 (diff) | |
fs/fs_parse: Correct comments of fs_validate_description()
For fs_validate_description(), its comments easily mislead reader that
the function will search array @desc for duplicated entries with name
specified by parameter @name, but @name is not used for search actually.
Fix by marking name as owner's name of these parameter specifications.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/fs_parser.c')
| -rw-r--r-- | fs/fs_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fs_parser.c b/fs/fs_parser.c index e635a81e17d9..c5cb19788f74 100644 --- a/fs/fs_parser.c +++ b/fs/fs_parser.c @@ -429,9 +429,9 @@ bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, } /** - * fs_validate_description - Validate a parameter description - * @name: The parameter name to search for. - * @desc: The parameter description to validate. + * fs_validate_description - Validate a parameter specification array + * @name: Owner name of the parameter specification array + * @desc: The parameter specification array to validate. */ bool fs_validate_description(const char *name, const struct fs_parameter_spec *desc) |