diff options
author | Li Zhengyu <lizhengyu3@huawei.com> | 2022-06-13 09:33:27 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-09-14 05:54:13 +0300 |
commit | 171ee3abf30c2ec97516895b12acbd16d4b8f237 (patch) | |
tree | 0f8331f7ccc8f2c6be479f22298a664f8a847c23 | |
parent | ae66b1fe48e2dd91229f2b8f25295bce629382d0 (diff) | |
download | linux-171ee3abf30c2ec97516895b12acbd16d4b8f237.tar.xz |
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>
-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; |