From cb498765f4ca428fa5f3590208483cee139f8018 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 14 Aug 2003 10:12:41 -0500 Subject: [PATCH] [PATCH] fix dc395x compile The recent update made it check the scsi_remove_host retval which is void now. --- drivers/scsi/dc395x.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 0714ea4b87369..c0155e1e3a98f 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -5862,14 +5862,7 @@ static void __devexit dc395x_remove_one(struct pci_dev *dev) struct Scsi_Host *host = pci_get_drvdata(dev); dprintkdbg(DBG_0, "Removing instance\n"); - if (!host) { - dprintkl(KERN_ERR, "no host allocated\n"); - return; - } - if (scsi_remove_host(host)) { - dprintkl(KERN_ERR, "scsi_remove_host failed\n"); - return; - } + scsi_remove_host(host); host_release(host); scsi_host_put(host); pci_set_drvdata(dev, NULL); -- 2.53.0