Commit 7e79a692 authored by zhong jiang's avatar zhong jiang Committed by Rafael J. Wysocki

ACPI: custom_method: remove meaningless null check before debugfs_remove()

debugfs_remove() has taken null pointer into account. So it is safe
to remove the check before debugfs_remove().
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 11da3a7f
......@@ -92,8 +92,7 @@ static int __init acpi_custom_method_init(void)
static void __exit acpi_custom_method_exit(void)
{
if (cm_dentry)
debugfs_remove(cm_dentry);
debugfs_remove(cm_dentry);
}
module_init(acpi_custom_method_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment