]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/platform/x86/intel_ips.c
platform/x86: intel_ips: NULL check before some freeing functions is not needed
[thirdparty/kernel/stable.git] / drivers / platform / x86 / intel_ips.c
index f37c07c6ad8ea0c7364075da79eec76022e18c22..221c090ac4712f839f6d1acf558b8a45071251cb 100644 (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)