Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Subject | [PATCH] PM / AVS: SmartReflex: NULL check before some freeing functions is not needed. | From | Thomas Meyer <> | Date | Sun, 02 Dec 2018 21:52:11 +0100 |
| |
NULL check before some freeing functions is not needed.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> ---
diff -u -p a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c --- a/drivers/power/avs/smartreflex.c +++ b/drivers/power/avs/smartreflex.c @@ -1010,8 +1010,7 @@ static int omap_sr_remove(struct platfor 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);
| ![\](/images/icornerr.gif) |