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>
This commit is contained in:
Thomas Meyer 2018-12-02 21:52:11 +01:00 committed by Andy Shevchenko
parent 9a92ed29ca
commit 0b8a6aeab9
1 changed files with 1 additions and 3 deletions

View File

@ -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)