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

Commit 5dcd7f15 authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by Lorenzo Pieralisi
Browse files

PCI: armada8k: 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>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
parent 7928b2cb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -247,7 +247,6 @@ static int armada8k_pcie_probe(struct platform_device *pdev)
	return 0;

fail:
	if (!IS_ERR(pcie->clk))
	clk_disable_unprepare(pcie->clk);

	return ret;