mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +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,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;
|
||||
|
Loading…
Reference in New Issue
Block a user