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,7 +2307,6 @@ static int s5p_aes_probe(struct platform_device *pdev)
tasklet_kill(&pdata->tasklet);
err_irq:
if (pdata->pclk)
clk_disable_unprepare(pdata->pclk);
err_clk:
......@@ -2338,7 +2337,6 @@ 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->clk);
......
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