Skip to content

Commit 14d338a

Browse files
thomasmeyrafaeljw
authored andcommitted
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>
1 parent c76aa32 commit 14d338a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/power/avs/smartreflex.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,7 @@ static int omap_sr_remove(struct platform_device *pdev)
990990

991991
if (sr_info->autocomp_active)
992992
sr_stop_vddautocomp(sr_info);
993-
if (sr_info->dbg_dir)
994-
debugfs_remove_recursive(sr_info->dbg_dir);
993+
debugfs_remove_recursive(sr_info->dbg_dir);
995994

996995
pm_runtime_disable(&pdev->dev);
997996
list_del(&sr_info->node);

0 commit comments

Comments
 (0)