From: Yisheng Xie Date: Thu, 22 Feb 2018 10:58:40 +0000 (+0800) Subject: staging: android: ion: Remove check of idev->debug_root X-Git-Tag: v4.17-rc1~124^2~386 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=81286d3e31b71c94207c6ccd0c486fdb2f93eda2;p=linux.git staging: android: ion: Remove check of idev->debug_root We will go on initial idev if failed to create debug_root, and it does not matter to check the return value of this debugfs call, just remove it. 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 0606d50c32d9..e74db7902549 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -585,9 +585,6 @@ static int ion_device_create(void) } idev->debug_root = debugfs_create_dir("ion", NULL); - if (!idev->debug_root) - pr_err("ion: failed to create debugfs root directory.\n"); - idev->buffers = RB_ROOT; mutex_init(&idev->buffer_lock); init_rwsem(&idev->lock);