diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-12-03 12:19:31 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-12-14 12:21:43 +0300 |
| commit | d66b1ab3554672750010ae96b651f431da6b687f (patch) | |
| tree | 1427db19d7c25ba23189d35043b1906206c9b934 /drivers/crypto/qce | |
| parent | e80cf84b608725303113d6fe98bb727bf7b7a40d (diff) | |
| download | linux-d66b1ab3554672750010ae96b651f431da6b687f.tar.xz | |
crypto: qce - remove unneeded call to icc_set_bw() in error path
There's no need to call icc_set_bw(qce->mem_path, 0, 0); in error path
as this will already be done in the release path of devm_of_icc_get().
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qce')
| -rw-r--r-- | drivers/crypto/qce/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 848e5e802b92..f9ff1dfc1def 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -234,7 +234,7 @@ static int qce_crypto_probe(struct platform_device *pdev) ret = clk_prepare_enable(qce->core); if (ret) - goto err_mem_path_disable; + return ret; ret = clk_prepare_enable(qce->iface); if (ret) @@ -274,8 +274,6 @@ err_clks_iface: clk_disable_unprepare(qce->iface); err_clks_core: clk_disable_unprepare(qce->core); -err_mem_path_disable: - icc_set_bw(qce->mem_path, 0, 0); return ret; } |
