Unverified Commit 1d17057d authored by Zijun Hu's avatar Zijun Hu Committed by Christian Brauner
Browse files

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: default avatarZijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 916148d2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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)