diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2018-12-02 23:52:11 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-12-03 22:40:03 +0300 |
commit | 0b8a6aeab9255a43b2a34b386d95004665e0fe9a (patch) | |
tree | 26d2acac308457f6742dfaff2d34e8b63950ca9e /drivers/platform/x86/intel_ips.c | |
parent | 9a92ed29ca961f118b45a2893416df753c287845 (diff) | |
download | linux-0b8a6aeab9255a43b2a34b386d95004665e0fe9a.tar.xz |
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/x86/intel_ips.c')
-rw-r--r-- | drivers/platform/x86/intel_ips.c | 4 |
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) |