media: venus: dev_pm_opp_put_*() accepts NULL argument
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 6 Nov 2020 06:48:39 +0000 (12:18 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Dec 2020 05:51:12 +0000 (11:21 +0530)
The dev_pm_opp_put_*() APIs now accepts a NULL opp_table pointer and so
there is no need for us to carry the extra check. Drop them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/media/platform/qcom/venus/pm_helpers.c

index 57877ea..e1e9130 100644 (file)
@@ -898,8 +898,7 @@ static void core_put_v4(struct device *dev)
 
        if (core->has_opp_table)
                dev_pm_opp_of_remove_table(dev);
-       if (core->opp_table)
-               dev_pm_opp_put_clkname(core->opp_table);
+       dev_pm_opp_put_clkname(core->opp_table);
 
 }