PCI: designware: Simplify control flow
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Jan 2016 21:48:11 +0000 (15:48 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Jan 2016 21:48:11 +0000 (15:48 -0600)
commit116a489d78b30862a2dd04961d3ba98fe4704220
treeb86ffccf9617439dc56cadc6bcb60a89b762279a
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PCI: designware: Simplify control flow

Return values immediately when possible to simplify the control flow.

No functional change intended.  Folded in unused variable removal as
pointed out by Fabio Estevam <fabio.estevam@nxp.com>, Arnd Bergmann
<arnd@arndb.de>, and Thierry Reding <thierry.reding@gmail.com>.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
drivers/pci/host/pcie-designware.c