summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2018-12-02 21:52:11 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-12 13:54:05 +0100
commit14d338a857f05f894ba3badd9e6d3039c68b8180 (patch)
treee2c931a4469b417d30ed08d0056bb3ff8feeeb01 /drivers/power
parentc76aa322070ecba18e2269349de4b31a80354ceb (diff)
PM / AVS: SmartReflex: 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> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/avs/smartreflex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c
index 536d99dc0008..25669f18e223 100644
--- a/drivers/power/avs/smartreflex.c
+++ b/drivers/power/avs/smartreflex.c
@@ -990,8 +990,7 @@ static int omap_sr_remove(struct platform_device *pdev)
if (sr_info->autocomp_active)
sr_stop_vddautocomp(sr_info);
- if (sr_info->dbg_dir)
- debugfs_remove_recursive(sr_info->dbg_dir);
+ debugfs_remove_recursive(sr_info->dbg_dir);
pm_runtime_disable(&pdev->dev);
list_del(&sr_info->node);