mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
btrfs: rename error to ret in btrfs_sysfs_add_fsid()
Unify naming of return value to the preferred way. Reviewed-by: Daniel Vacek <neelx@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
64b8c3851f
commit
6dfe71e6ab
|
|
@ -2290,15 +2290,15 @@ static struct kset *btrfs_kset;
|
|||
*/
|
||||
int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs)
|
||||
{
|
||||
int error;
|
||||
int ret;
|
||||
|
||||
init_completion(&fs_devs->kobj_unregister);
|
||||
fs_devs->fsid_kobj.kset = btrfs_kset;
|
||||
error = kobject_init_and_add(&fs_devs->fsid_kobj, &btrfs_ktype, NULL,
|
||||
"%pU", fs_devs->fsid);
|
||||
if (error) {
|
||||
ret = kobject_init_and_add(&fs_devs->fsid_kobj, &btrfs_ktype, NULL,
|
||||
"%pU", fs_devs->fsid);
|
||||
if (ret) {
|
||||
kobject_put(&fs_devs->fsid_kobj);
|
||||
return error;
|
||||
return ret;
|
||||
}
|
||||
|
||||
fs_devs->devices_kobj = kobject_create_and_add("devices",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user