Skip to contentSkip to conversation

dc395x - fix compile

PATCH New Jamie Lenehan 1 participant 1 message Aug 17, 2003

Subsystems (2)
lore
Share & tools
lore

Jamie Lenehan

author maintainer
#0 lore raw

PATCH 1/1 dc395x - fix compile

Hi,

this patch is good and needs to be applied to get the dc395x driver in the current tree (2.6.0-test3-bk3) to build (it's not yet included in the scsi-misc tree).

Thanks.

----- Forwarded message from Christoph Hellwig <[email protected]> -----
From: Christoph Hellwig <[email protected]>
Subject: [PATCH] fix dc395x compile
Date: Fri, 8 Aug 2003 21:07:06 +0200
Cc: SCSI Mailing List <[email protected]>

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);

----- End forwarded message -----

Signature · 1 line
 Jamie Lenehan <[email protected]>