diff options
author | Tobin C. Harding <tobin@kernel.org> | 2019-05-01 22:31:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-02 03:24:06 -0400 |
commit | 8fd7c302b37099670b5d793375da10a40da7edf5 (patch) | |
tree | becab5c784236f945c55973cd2b27663a6ee44fb | |
parent | bbabc3fb2b6344577ee1a43d28355bf788e9b4a2 (diff) |
kobject: Remove docstring reference to kset
Currently the docstring for kobject_get_path() mentions 'kset'. The
kset is not used in the function callchain starting from this function.
Remove docstring reference to kset from the function kobject_get_path().
Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | lib/kobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 095bcb55c2ba..09e3ac329e92 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -162,12 +162,11 @@ static void fill_kobj_path(struct kobject *kobj, char *path, int length) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | /** | 164 | /** |
165 | * kobject_get_path - generate and return the path associated with a given kobj and kset pair. | 165 | * kobject_get_path() - Allocate memory and fill in the path for @kobj. |
166 | * | ||
167 | * @kobj: kobject in question, with which to build the path | 166 | * @kobj: kobject in question, with which to build the path |
168 | * @gfp_mask: the allocation type used to allocate the path | 167 | * @gfp_mask: the allocation type used to allocate the path |
169 | * | 168 | * |
170 | * The result must be freed by the caller with kfree(). | 169 | * Return: The newly allocated memory, caller must free with kfree(). |
171 | */ | 170 | */ |
172 | char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) | 171 | char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask) |
173 | { | 172 | { |