Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10bc320b authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by Herbert Xu
Browse files

hwrng: omap - Remove useless test before clk_disable_unprepare



clk_disable_unprepare() already checks that the clock pointer is valid.
No need to test it before calling it.

Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5007387f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -499,7 +499,6 @@ static int omap_rng_probe(struct platform_device *pdev)
	pm_runtime_put_sync(&pdev->dev);
	pm_runtime_disable(&pdev->dev);

	if (!IS_ERR(priv->clk))
	clk_disable_unprepare(priv->clk);
err_ioremap:
	dev_err(dev, "initialization failed.\n");
@@ -517,7 +516,6 @@ static int omap_rng_remove(struct platform_device *pdev)
	pm_runtime_put_sync(&pdev->dev);
	pm_runtime_disable(&pdev->dev);

	if (!IS_ERR(priv->clk))
	clk_disable_unprepare(priv->clk);

	return 0;