staging: android: ion: Remove lable debugfs_done
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 12 Feb 2018 10:43:10 +0000 (18:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:29:07 +0000 (17:29 +0100)
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>
drivers/staging/android/ion/ion.c

index 4b6937237895598d4361f11905173a7b1b0052a8..461b19358d8030888e84254168bf24c178fb74b9 100644 (file)
@@ -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);