From: Yisheng Xie Date: Mon, 12 Feb 2018 10:43:10 +0000 (+0800) Subject: staging: android: ion: Remove lable debugfs_done X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fa04df23f5121dc710aabc8e78486f3c10939c69;p=linux.git 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 Signed-off-by: Yisheng Xie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 4b69372378955..461b19358d803 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);