summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2018-12-02 23:52:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 17:34:17 +0300
commit9fdf2c031b74b564fb20902002ee71f8f2e1b378 (patch)
tree1ec494ea7652b7306a1b9f8c8f9a03a76df30da2 /drivers/power
parent42c9c872d7da3d8c75785d8c67b10cef542f23a8 (diff)
downloadlinux-9fdf2c031b74b564fb20902002ee71f8f2e1b378.tar.xz
PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
[ Upstream commit 14d338a857f05f894ba3badd9e6d3039c68b8180 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
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 fa0f19b975a6..bb7b817cca59 100644
--- a/drivers/power/avs/smartreflex.c
+++ b/drivers/power/avs/smartreflex.c
@@ -994,8 +994,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);