[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1543760930051-726829870-3-diffsplit-thomas@m3y3r.de>
Date: Sun, 02 Dec 2018 21:52:11 +0100
From: Thomas Meyer <thomas@...3r.de>
To: dvhart@...radead.org, andy@...radead.org,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...3r.de>
---
diff -u -p a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -1300,8 +1300,7 @@ static const struct file_operations 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;
}
Powered by blists - more mailing lists