aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/ion
diff options
context:
space:
mode:
authorYisheng Xie <xieyisheng1@huawei.com>2018-02-12 18:43:10 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-16 17:29:07 +0100
commitfa04df23f5121dc710aabc8e78486f3c10939c69 (patch)
tree86090e64c6c7fe24b52886d7b01b806f122e2426 /drivers/staging/android/ion
parentstaging: android: ion: Avoid NULL point in error path (diff)
downloadlinux-dev-fa04df23f5121dc710aabc8e78486f3c10939c69.tar.xz
linux-dev-fa04df23f5121dc710aabc8e78486f3c10939c69.zip
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: Laura Abbott <labbott@redhat.com> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/ion')
-rw-r--r--drivers/staging/android/ion/ion.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 4b6937237895..461b19358d80 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -595,12 +595,9 @@ static int ion_device_create(void)
}
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");
- goto debugfs_done;
- }
-debugfs_done:
idev->buffers = RB_ROOT;
mutex_init(&idev->buffer_lock);
init_rwsem(&idev->lock);