summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android
diff options
context:
space:
mode:
authorYisheng Xie <xieyisheng1@huawei.com>2018-02-22 18:58:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-22 14:53:05 +0100
commit6a1b0b33cb174ed17f35b2cb6e5b9ee15f25e580 (patch)
tree05048e9bd20cd17161dea1e92e5b034cfccb6a8f /drivers/staging/android
parent59142f808a5e8722e66ab1753532ed5d300a34dd (diff)
downloadblackbird-op-linux-6a1b0b33cb174ed17f35b2cb6e5b9ee15f25e580.tar.gz
blackbird-op-linux-6a1b0b33cb174ed17f35b2cb6e5b9ee15f25e580.zip
staging: android: ion: Remove check of debug_file
There's no need to check the return value of debug_file for it is just a debugfs and we will go on the following process if we failed to create debug_file. So 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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 74d9a4e29b2b..0606d50c32d9 100644
--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -522,7 +522,6 @@ DEFINE_SIMPLE_ATTRIBUTE(debug_shrink_fops, debug_shrink_get,
void ion_device_add_heap(struct ion_heap *heap)
{
- struct dentry *debug_file;
struct ion_device *dev = internal_dev;
int ret;
@@ -556,12 +555,8 @@ void ion_device_add_heap(struct ion_heap *heap)
char debug_name[64];
snprintf(debug_name, 64, "%s_shrink", heap->name);
- debug_file = debugfs_create_file(debug_name,
- 0644, dev->debug_root, heap,
- &debug_shrink_fops);
- if (!debug_file)
- pr_err("Failed to create ion heap shrinker debugfs at %s\n",
- debug_name);
+ debugfs_create_file(debug_name, 0644, dev->debug_root,
+ heap, &debug_shrink_fops);
}
dev->heap_cnt++;
OpenPOWER on IntegriCloud