Skip to contentSkip to conversation

fix dc395x compile

PATCH New Christoph Hellwig 1 participant 1 message Aug 8, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix dc395x compile

The recent update made it check the scsi_remove_host retval which is void now.

drivers/scsi/dc395x.c +1 -8
diff -Nru a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
@@ -5862,14 +5862,7 @@
 	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);