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:
committed by
Lorenzo Pieralisi
parent
7928b2cbe5
commit
5dcd7f15ac
@@ -247,8 +247,7 @@ static int armada8k_pcie_probe(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (!IS_ERR(pcie->clk))
|
clk_disable_unprepare(pcie->clk);
|
||||||
clk_disable_unprepare(pcie->clk);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user