Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4336548a authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe
Browse files

drivers/block/cciss.c:cciss_init_one(): use proper errnos



pci_driver.probe should return a meaningful errno, not -1.

Cc: Jens Axboe <axboe@kernel.dk>
Cc: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3f7d758b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5004,7 +5004,7 @@ static int cciss_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)

	i = alloc_cciss_hba(pdev);
	if (i < 0)
		return -1;
		return -ENOMEM;

	h = hba[i];
	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);
	free_hba(h);
	return -1;
	return -ENODEV;
}

static void cciss_shutdown(struct pci_dev *pdev)