summaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorAntonio Ospite <ao2@ao2.it>2015-04-29 04:55:46 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 15:31:33 -0400
commited1dc8a89454218a2471f67284765e8c03bdfc6b (patch)
tree38ea6ef9acc13c751a3d7065326c8606a224d132 /fs/sysfs
parent80c6e1465948c2e91214f01764f427d31ebedb26 (diff)
sysfs: disambiguate between "error code" and "failure" in comments
The sentence "Returns 0 on success or error" might be misinterpreted as "the function will always returns 0", make it less ambiguous. Also, use the word "failure" as the contrary of "success". Signed-off-by: Antonio Ospite <ao2@ao2.it> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs')
-rw-r--r--fs/sysfs/group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c
index b400c04371f0..39a019936768 100644
--- a/fs/sysfs/group.c
+++ b/fs/sysfs/group.c
@@ -135,7 +135,7 @@ static int internal_create_group(struct kobject *kobj, int update,
135 * This function creates a group for the first time. It will explicitly 135 * This function creates a group for the first time. It will explicitly
136 * warn and error if any of the attribute files being created already exist. 136 * warn and error if any of the attribute files being created already exist.
137 * 137 *
138 * Returns 0 on success or error. 138 * Returns 0 on success or error code on failure.
139 */ 139 */
140int sysfs_create_group(struct kobject *kobj, 140int sysfs_create_group(struct kobject *kobj,
141 const struct attribute_group *grp) 141 const struct attribute_group *grp)
@@ -155,7 +155,7 @@ EXPORT_SYMBOL_GPL(sysfs_create_group);
155 * It will explicitly warn and error if any of the attribute files being 155 * It will explicitly warn and error if any of the attribute files being
156 * created already exist. 156 * created already exist.
157 * 157 *
158 * Returns 0 on success or error code from sysfs_create_group on error. 158 * Returns 0 on success or error code from sysfs_create_group on failure.
159 */ 159 */
160int sysfs_create_groups(struct kobject *kobj, 160int sysfs_create_groups(struct kobject *kobj,
161 const struct attribute_group **groups) 161 const struct attribute_group **groups)
@@ -193,7 +193,7 @@ EXPORT_SYMBOL_GPL(sysfs_create_groups);
193 * The primary use for this function is to call it after making a change 193 * The primary use for this function is to call it after making a change
194 * that affects group visibility. 194 * that affects group visibility.
195 * 195 *
196 * Returns 0 on success or error. 196 * Returns 0 on success or error code on failure.
197 */ 197 */
198int sysfs_update_group(struct kobject *kobj, 198int sysfs_update_group(struct kobject *kobj,
199 const struct attribute_group *grp) 199 const struct attribute_group *grp)