PCI: Simplify pci_create_attr() control flow
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Mar 2016 20:36:34 +0000 (14:36 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 12 Mar 2016 12:00:29 +0000 (06:00 -0600)
commitbd5174dfb6f171fa06e638664ec6ee54692cf7b2
treeaa92dc71b59aa1c030f0d33e601399acda9fb719
parentb562ec8f74e4edb532a53d26f0002d6fb4a6c79b
PCI: Simplify pci_create_attr() control flow

Return error immediately to simplify the control flow in pci_create_attr().
No functional change intended.

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