diff options
author | Li Zhengyu <[email protected]> | 2022-06-13 14:33:27 +0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2022-09-13 21:54:13 -0500 |
commit | 171ee3abf30c2ec97516895b12acbd16d4b8f237 (patch) | |
tree | 0f8331f7ccc8f2c6be479f22298a664f8a847c23 | |
parent | ae66b1fe48e2dd91229f2b8f25295bce629382d0 (diff) |
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 <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
-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; |