PCI/portdrv: Cleanup error paths
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Dec 2013 21:20:09 +0000 (14:20 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Dec 2013 21:20:09 +0000 (14:20 -0700)
commit8f3acca9acec1503f6b374faef2d1013cbf502af
tree069a4970658b8eb08802f4007d57663d7d9c2e4c
parentef83b0781a73f9efcb1228256bfdfb97fc9533a8
PCI/portdrv: Cleanup error paths

Make the straightline path the normal no-error path.  Check for errors and
return them directly, instead of checking for success and putting the
normal path in an "if" body.

No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_core.c