Commit 81286d3e authored by Yisheng Xie's avatar Yisheng Xie Committed by Greg Kroah-Hartman

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: default avatarYisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a1b0b33
...@@ -585,9 +585,6 @@ static int ion_device_create(void) ...@@ -585,9 +585,6 @@ static int ion_device_create(void)
} }
idev->debug_root = debugfs_create_dir("ion", NULL); 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; idev->buffers = RB_ROOT;
mutex_init(&idev->buffer_lock); mutex_init(&idev->buffer_lock);
init_rwsem(&idev->lock); init_rwsem(&idev->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment