opp: No need to check clk for errors
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 20 Jan 2021 10:27:21 +0000 (15:57 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:57:50 +0000 (10:27 +0530)
commit1d3c42cabbd351e9c171e906603b5cc2ea513640
treedc0547e63825c81c9f02a80d01347592226eb83f
parent5ad58bbacf802f7d11cadd76881311d6e4b2bce0
opp: No need to check clk for errors

Clock is not optional for users who call into dev_pm_opp_set_rate().
Remove the unnecessary checks.

While at it also drop the local variable for clk and use opp_table->clk
instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
drivers/opp/core.c