Commit 0b8a6aea authored by Thomas Meyer's avatar Thomas Meyer Committed by Andy Shevchenko

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: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 9a92ed29
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment