Commit cb498765 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

[PATCH] fix dc395x compile

The recent update made it check the scsi_remove_host retval which
is void now.
parent 6215ec4f
...@@ -5862,14 +5862,7 @@ static void __devexit dc395x_remove_one(struct pci_dev *dev) ...@@ -5862,14 +5862,7 @@ static void __devexit dc395x_remove_one(struct pci_dev *dev)
struct Scsi_Host *host = pci_get_drvdata(dev); struct Scsi_Host *host = pci_get_drvdata(dev);
dprintkdbg(DBG_0, "Removing instance\n"); dprintkdbg(DBG_0, "Removing instance\n");
if (!host) { scsi_remove_host(host);
dprintkl(KERN_ERR, "no host allocated\n");
return;
}
if (scsi_remove_host(host)) {
dprintkl(KERN_ERR, "scsi_remove_host failed\n");
return;
}
host_release(host); host_release(host);
scsi_host_put(host); scsi_host_put(host);
pci_set_drvdata(dev, NULL); pci_set_drvdata(dev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment