mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 23:57:47 +07: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 @@ static int s5p_aes_probe(struct platform_device *pdev)
|
||||
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