]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
authorThomas Meyer <thomas@m3y3r.de>
Sun, 2 Dec 2018 20:52:11 +0000 (21:52 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Dec 2018 12:54:05 +0000 (13:54 +0100)
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>
drivers/power/avs/smartreflex.c

index 536d99dc0008fd45474e25c7b38d942a9824ba1a..25669f18e22393e83d085ab22155d9639f37e75c 100644 (file)
@@ -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);