summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@bootlin.com>2018-02-28 17:35:29 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-03-08 15:23:35 +0000
commit5dcd7f15ac0c113b46adc80e66dac58024e56e97 (patch)
treed6cadfe2af5906de2331f5e8353fc1403f85b86b /drivers/pci/dwc
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
downloadop-kernel-dev-5dcd7f15ac0c113b46adc80e66dac58024e56e97.zip
op-kernel-dev-5dcd7f15ac0c113b46adc80e66dac58024e56e97.tar.gz
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>
Diffstat (limited to 'drivers/pci/dwc')
-rw-r--r--drivers/pci/dwc/pcie-armada8k.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/dwc/pcie-armada8k.c b/drivers/pci/dwc/pcie-armada8k.c
index b587352..f9b1aec 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;
}
OpenPOWER on IntegriCloud