Commit fa04df23 authored by Yisheng Xie's avatar Yisheng Xie Committed by Greg Kroah-Hartman

staging: android: ion: Remove lable debugfs_done

When failed to create debug_root, we will go on initail other part of
ion, so we can just info this message to user and do not need a lable
to jump.
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarYisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa976e5e
...@@ -595,12 +595,9 @@ static int ion_device_create(void) ...@@ -595,12 +595,9 @@ static int ion_device_create(void)
} }
idev->debug_root = debugfs_create_dir("ion", NULL); idev->debug_root = debugfs_create_dir("ion", NULL);
if (!idev->debug_root) { if (!idev->debug_root)
pr_err("ion: failed to create debugfs root directory.\n"); pr_err("ion: failed to create debugfs root directory.\n");
goto debugfs_done;
}
debugfs_done:
idev->buffers = RB_ROOT; idev->buffers = RB_ROOT;
mutex_init(&idev->buffer_lock); mutex_init(&idev->buffer_lock);
init_rwsem(&idev->lock); init_rwsem(&idev->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment