diff options
author | Yisheng Xie <xieyisheng1@huawei.com> | 2018-02-22 18:58:40 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-22 14:53:05 +0100 |
commit | 81286d3e31b71c94207c6ccd0c486fdb2f93eda2 (patch) | |
tree | 7ee21ecb98cc3575336695176676e38ef851d3a5 /drivers/staging/android | |
parent | 6a1b0b33cb174ed17f35b2cb6e5b9ee15f25e580 (diff) |
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 <xieyisheng1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/ion/ion.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |