From: Thomas Meyer Date: Sun, 2 Dec 2018 20:52:11 +0000 (+0100) Subject: platform/x86: intel_ips: NULL check before some freeing functions is not needed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b8a6aeab9255a43b2a34b386d95004665e0fe9a;p=linux.git 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 Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index f37c07c6ad8ea..221c090ac4712 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c @@ -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)