diff options
author | Li Zhengyu <lizhengyu3@huawei.com> | 2022-06-13 08:33:27 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-09-14 04:54:13 +0200 |
commit | 171ee3abf30c2ec97516895b12acbd16d4b8f237 (patch) | |
tree | 0f8331f7ccc8f2c6be479f22298a664f8a847c23 /drivers/clk/qcom/clk-rpmh.c | |
parent | clk: qcom: gcc-sdm845: add sdm670 global clock data (diff) | |
download | linux-171ee3abf30c2ec97516895b12acbd16d4b8f237.tar.xz linux-171ee3abf30c2ec97516895b12acbd16d4b8f237.zip |
clk: qcom: clk-rpmh: Remove redundant if statement
By the clk framework already reference counts prepare/unprepare,
this if statement should be never true.
Signed-off-by: Li Zhengyu <lizhengyu3@huawei.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220613063327.89320-1-lizhengyu3@huawei.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/clk-rpmh.c')
-rw-r--r-- | drivers/clk/qcom/clk-rpmh.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c07cab6905cb..9739aab0fe82 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -195,10 +195,6 @@ static int clk_rpmh_aggregate_state_send_command(struct clk_rpmh *c, { int ret; - /* Nothing required to be done if already off or on */ - if (enable == c->state) - return 0; - c->state = enable ? c->valid_state_mask : 0; c->aggr_state = c->state | c->peer->state; c->peer->aggr_state = c->aggr_state; |