ata: remove unnecessary code
Compile tested. remove unnecessary code that matches this coccinelle pattern if (...) return ret; return ret; Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
d4d8eaff78
commit
47db477e46
@ -195,8 +195,6 @@ static int pacpi_port_start(struct ata_port *ap)
|
|||||||
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
||||||
struct pata_acpi *acpi;
|
struct pata_acpi *acpi;
|
||||||
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (ap->acpi_handle == NULL)
|
if (ap->acpi_handle == NULL)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
@ -205,11 +203,7 @@ static int pacpi_port_start(struct ata_port *ap)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]);
|
acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]);
|
||||||
acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]);
|
acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]);
|
||||||
ret = ata_bmdma_port_start(ap);
|
return ata_bmdma_port_start(ap);
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct scsi_host_template pacpi_sht = {
|
static struct scsi_host_template pacpi_sht = {
|
||||||
|
Loading…
Reference in New Issue
Block a user