Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xu Wang and committed by
Herbert Xu
7fe99da1 cb435fa6

+2 -4
+2 -4
drivers/crypto/s5p-sss.c
··· 2307 2307 tasklet_kill(&pdata->tasklet); 2308 2308 2309 2309 err_irq: 2310 - if (pdata->pclk) 2311 - clk_disable_unprepare(pdata->pclk); 2310 + clk_disable_unprepare(pdata->pclk); 2312 2311 2313 2312 err_clk: 2314 2313 clk_disable_unprepare(pdata->clk); ··· 2337 2338 pdata->use_hash = false; 2338 2339 } 2339 2340 2340 - if (pdata->pclk) 2341 - clk_disable_unprepare(pdata->pclk); 2341 + clk_disable_unprepare(pdata->pclk); 2342 2342 2343 2343 clk_disable_unprepare(pdata->clk); 2344 2344 s5p_dev = NULL;