aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2018-12-02 21:52:11 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-12-03 21:40:03 +0200
commit0b8a6aeab9255a43b2a34b386d95004665e0fe9a (patch)
tree26d2acac308457f6742dfaff2d34e8b63950ca9e /drivers/platform
parentplatform/x86: intel_ips: remove unnecessary checks in ips_debugfs_init (diff)
downloadlinux-dev-0b8a6aeab9255a43b2a34b386d95004665e0fe9a.tar.xz
linux-dev-0b8a6aeab9255a43b2a34b386d95004665e0fe9a.zip
platform/x86: intel_ips: NULL check before some freeing functions is not needed
NULL check before some freeing functions is not needed. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_ips.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index f37c07c6ad8e..221c090ac471 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -1300,9 +1300,7 @@ static const struct file_operations ips_debugfs_ops = {
static void ips_debugfs_cleanup(struct ips_driver *ips)
{
- if (ips->debug_root)
- debugfs_remove_recursive(ips->debug_root);
- return;
+ debugfs_remove_recursive(ips->debug_root);
}
static void ips_debugfs_init(struct ips_driver *ips)