|
@@ -5004,7 +5004,7 @@ static int cciss_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
|
|
|
|
|
i = alloc_cciss_hba(pdev);
|
|
i = alloc_cciss_hba(pdev);
|
|
|
if (i < 0)
|
|
if (i < 0)
|
|
|
- return -1;
|
|
|
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
|
|
h = hba[i];
|
|
h = hba[i];
|
|
|
h->pdev = pdev;
|
|
h->pdev = pdev;
|
|
@@ -5205,7 +5205,7 @@ static int cciss_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
*/
|
|
*/
|
|
|
pci_set_drvdata(pdev, NULL);
|
|
pci_set_drvdata(pdev, NULL);
|
|
|
free_hba(h);
|
|
free_hba(h);
|
|
|
- return -1;
|
|
|
|
|
|
|
+ return -ENODEV;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void cciss_shutdown(struct pci_dev *pdev)
|
|
static void cciss_shutdown(struct pci_dev *pdev)
|