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: Gregory CLEMENT <gregory.clement@bootlin.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
This commit is contained in:
Gregory CLEMENT 2018-02-28 17:35:29 +01:00 committed by Lorenzo Pieralisi
parent 7928b2cbe5
commit 5dcd7f15ac
1 changed files with 1 additions and 2 deletions

View File

@ -247,8 +247,7 @@ static int armada8k_pcie_probe(struct platform_device *pdev)
return 0;
fail:
if (!IS_ERR(pcie->clk))
clk_disable_unprepare(pcie->clk);
clk_disable_unprepare(pcie->clk);
return ret;
}