diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-09-03 08:37:38 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-09-11 14:39:17 +1000 |
commit | 7fe99da102c39213e4a4fd8f7bb0914120f2ae3a (patch) | |
tree | 3e75ed0ffc47fc49ccbe435a87e359f68b0cbd06 /drivers/crypto/s5p-sss.c | |
parent | cb435fa642ebbb348d336aa46669c0881dd435bc (diff) | |
download | linux-7fe99da102c39213e4a4fd8f7bb0914120f2ae3a.tar.gz linux-7fe99da102c39213e4a4fd8f7bb0914120f2ae3a.tar.bz2 linux-7fe99da102c39213e4a4fd8f7bb0914120f2ae3a.zip |
crypto: s5p-sss - remove redundant null check
Because clk_disable_unprepare already checked NULL clock
parameter, so the additional checks are unnecessary, just remove them.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Kamil Konieczny <k.konieczny@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/s5p-sss.c')
-rw-r--r-- | drivers/crypto/s5p-sss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 341433fbcc4a..fdcbfd45c884 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -2307,8 +2307,7 @@ err_algs: tasklet_kill(&pdata->tasklet); err_irq: - if (pdata->pclk) - clk_disable_unprepare(pdata->pclk); + clk_disable_unprepare(pdata->pclk); err_clk: clk_disable_unprepare(pdata->clk); @@ -2338,8 +2337,7 @@ static int s5p_aes_remove(struct platform_device *pdev) pdata->use_hash = false; } - if (pdata->pclk) - clk_disable_unprepare(pdata->pclk); + clk_disable_unprepare(pdata->pclk); clk_disable_unprepare(pdata->clk); s5p_dev = NULL; |