diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-07-16 17:16:13 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-02 17:40:46 -0400 |
commit | c3539516538006a92fa395cf8b203a23a6913567 (patch) | |
tree | 113431244f2c371a254e375a61248b5cc678eeb2 | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
PCI: mvebu: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate
the check in the driver.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com
-rw-r--r-- | drivers/pci/host/pci-mvebu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c index f353a6eb2f01..fa227d81bec6 100644 --- a/drivers/pci/host/pci-mvebu.c +++ b/drivers/pci/host/pci-mvebu.c | |||
@@ -1186,8 +1186,7 @@ static int mvebu_pcie_powerup(struct mvebu_pcie_port *port) | |||
1186 | */ | 1186 | */ |
1187 | static void mvebu_pcie_powerdown(struct mvebu_pcie_port *port) | 1187 | static void mvebu_pcie_powerdown(struct mvebu_pcie_port *port) |
1188 | { | 1188 | { |
1189 | if (port->reset_gpio) | 1189 | gpiod_set_value_cansleep(port->reset_gpio, 1); |
1190 | gpiod_set_value_cansleep(port->reset_gpio, 1); | ||
1191 | 1190 | ||
1192 | clk_disable_unprepare(port->clk); | 1191 | clk_disable_unprepare(port->clk); |
1193 | } | 1192 | } |