diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-08-28 18:43:25 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 00:43:53 (GMT) |
commit | e1b95dc6b1cd02c3625ba3d1d770d095d6a4b313 (patch) | |
tree | cfc7777afe5d8153fd106f317274890469241048 /drivers/pci/hotplug/shpchp_core.c | |
parent | 4bf3392e0bf55e5aabbd7bbdbc52cc58eb63f837 (diff) | |
download | linux-fsl-qoriq-e1b95dc6b1cd02c3625ba3d1d770d095d6a4b313.tar.xz |
SHPCHP: fix __must_check warnings
Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_core.c')
-rw-r--r-- | drivers/pci/hotplug/shpchp_core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index a14e7de..235c18a 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c @@ -449,10 +449,14 @@ static int shpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ctrl->speed = PCI_SPEED_33MHz; } - shpchp_create_ctrl_files(ctrl); + rc = shpchp_create_ctrl_files(ctrl); + if (rc) + goto err_cleanup_slots; return 0; +err_cleanup_slots: + cleanup_slots(ctrl); err_out_release_ctlr: ctrl->hpc_ops->release_ctlr(ctrl); err_out_free_ctrl: |