mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
[ Upstream commit 14d338a857
]
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>
This commit is contained in:
parent
d2e3e3c3c1
commit
4d54a79695
1 changed files with 1 additions and 2 deletions
|
@ -1010,8 +1010,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);
|
||||
|
|
Loading…
Reference in a new issue