mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
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>
This commit is contained in:
parent
cb435fa642
commit
7fe99da102
@ -2307,7 +2307,6 @@ err_algs:
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user