mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue