Commit 7fe99da1 authored by Xu Wang's avatar Xu Wang Committed by Herbert Xu

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: default avatarXu Wang <vulab@iscas.ac.cn>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarKamil Konieczny <k.konieczny@samsung.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cb435fa6
...@@ -2307,8 +2307,7 @@ static int s5p_aes_probe(struct platform_device *pdev) ...@@ -2307,8 +2307,7 @@ static int s5p_aes_probe(struct platform_device *pdev)
tasklet_kill(&pdata->tasklet); tasklet_kill(&pdata->tasklet);
err_irq: err_irq:
if (pdata->pclk) clk_disable_unprepare(pdata->pclk);
clk_disable_unprepare(pdata->pclk);
err_clk: err_clk:
clk_disable_unprepare(pdata->clk); clk_disable_unprepare(pdata->clk);
...@@ -2338,8 +2337,7 @@ static int s5p_aes_remove(struct platform_device *pdev) ...@@ -2338,8 +2337,7 @@ static int s5p_aes_remove(struct platform_device *pdev)
pdata->use_hash = false; pdata->use_hash = false;
} }
if (pdata->pclk) clk_disable_unprepare(pdata->pclk);
clk_disable_unprepare(pdata->pclk);
clk_disable_unprepare(pdata->clk); clk_disable_unprepare(pdata->clk);
s5p_dev = NULL; s5p_dev = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment