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:
parent
9a92ed29ca
commit
0b8a6aeab9
|
@ -1300,9 +1300,7 @@ static const struct file_operations ips_debugfs_ops = {
|
||||||
|
|
||||||
static void ips_debugfs_cleanup(struct ips_driver *ips)
|
static void ips_debugfs_cleanup(struct ips_driver *ips)
|
||||||
{
|
{
|
||||||
if (ips->debug_root)
|
debugfs_remove_recursive(ips->debug_root);
|
||||||
debugfs_remove_recursive(ips->debug_root);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ips_debugfs_init(struct ips_driver *ips)
|
static void ips_debugfs_init(struct ips_driver *ips)
|
||||||
|
|
Loading…
Reference in New Issue