]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Simplify __pci_assign_resource() coding style
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 20 May 2014 00:39:07 +0000 (18:39 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2014 18:40:49 +0000 (12:40 -0600)
commit66dbde41711a7a211d478fbbb7db80796b40f1e9
tree11e5c253120cf5f7e76e7324610934c792b76622
parent22cc6be067449a388596b5d6b3769714810dff3a
PCI: Simplify __pci_assign_resource() coding style

If an allocation succeeds, we can return success immediately.  Then we
don't have to test for success in the subsequent code.

No functional change.

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