Skip to content

Commit

Permalink
PM / AVS: SmartReflex: NULL check before some freeing functions is no…
Browse files Browse the repository at this point in the history
…t 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>
  • Loading branch information
Thomas Meyer authored and Rafael J. Wysocki committed Dec 12, 2018
1 parent c76aa32 commit 14d338a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/power/avs/smartreflex.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 14d338a

Please sign in to comment.