OSDN Git Service

cpufreq: qcom-cpufreq-nvmem: 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)
commit2ff8fe13ac6da7a7c45d610cc3237c8556610f07
tree028d7c8129022d73304034c890413f6e1a1bf996
parent5f6ffb8d8f8fdf672cbc4f27888ce075df13d49c
cpufreq: qcom-cpufreq-nvmem: dev_pm_opp_put_*() accepts NULL argument

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 checks. Drop them.

Reviewed-by: Ilia Lin <ilia.lin@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c