From: Gregory CLEMENT Date: Wed, 28 Feb 2018 16:35:29 +0000 (+0100) Subject: PCI: armada8k: Remove useless test before clk_disable_unprepare() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5dcd7f15ac0c113b46adc80e66dac58024e56e97;p=linux.git 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 [lorenzo.pieralisi@arm.com: updated commit log] Signed-off-by: Lorenzo Pieralisi --- diff --git a/drivers/pci/dwc/pcie-armada8k.c b/drivers/pci/dwc/pcie-armada8k.c index b587352f8b9fa..f9b1aec25c5cd 100644 --- a/drivers/pci/dwc/pcie-armada8k.c +++ b/drivers/pci/dwc/pcie-armada8k.c @@ -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; }