linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / net / wireless / hostap / hostap_pci.c
index 194f070..2e85bdc 100644 (file)
@@ -307,7 +307,7 @@ static int prism2_pci_probe(struct pci_dev *pdev,
        memset(hw_priv, 0, sizeof(*hw_priv));
 
        if (pci_enable_device(pdev))
-               goto err_out_free;
+               return -EIO;
 
        phymem = pci_resource_start(pdev, 0);
 
@@ -368,8 +368,6 @@ static int prism2_pci_probe(struct pci_dev *pdev,
  err_out_disable:
        pci_disable_device(pdev);
        prism2_free_local_data(dev);
-
- err_out_free:
        kfree(hw_priv);
 
        return -ENODEV;