[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1519297120-26308-2-git-send-email-xieyisheng1@huawei.com>
Date: Thu, 22 Feb 2018 18:58:40 +0800
From: Yisheng Xie <xieyisheng1@...wei.com>
To: <gregkh@...uxfoundation.org>
CC: <labbott@...hat.com>, <sumit.semwal@...aro.org>,
<devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>,
Yisheng Xie <xieyisheng1@...wei.com>
Subject: [PATCH -next 2/2] 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@...wei.com>
---
drivers/staging/android/ion/ion.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 0606d50..e74db79 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);
--
1.7.12.4
Powered by blists - more mailing lists