diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-07-28 14:37:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 17:57:25 -0400 |
commit | 95a629657dbe28e44a312c47815b3dc3f1ce0970 (patch) | |
tree | 0e48656b5d61e26078a50af9f6766e52934fbedf /drivers/pci/pci.c | |
parent | 085ae41f66657a9655ce832b0a61832a06f0e1dc (diff) |
[PATCH] PCI: start paying attention to a lot of pci function return values
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 93ec158d06c1..afee2de3f323 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -444,8 +444,11 @@ pci_enable_device_bars(struct pci_dev *dev, int bars) | |||
444 | { | 444 | { |
445 | int err; | 445 | int err; |
446 | 446 | ||
447 | pci_set_power_state(dev, PCI_D0); | 447 | err = pci_set_power_state(dev, PCI_D0); |
448 | if ((err = pcibios_enable_device(dev, bars)) < 0) | 448 | if (err) |
449 | return err; | ||
450 | err = pcibios_enable_device(dev, bars); | ||
451 | if (err < 0) | ||
449 | return err; | 452 | return err; |
450 | return 0; | 453 | return 0; |
451 | } | 454 | } |