Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Greg Dietsche and committed by
Jeff Garzik
47db477e d4d8eaff

+1 -7
+1 -7
drivers/ata/pata_acpi.c
··· 195 195 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 196 196 struct pata_acpi *acpi; 197 197 198 - int ret; 199 - 200 198 if (ap->acpi_handle == NULL) 201 199 return -ENODEV; 202 200 ··· 203 205 return -ENOMEM; 204 206 acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]); 205 207 acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]); 206 - ret = ata_bmdma_port_start(ap); 207 - if (ret < 0) 208 - return ret; 209 - 210 - return ret; 208 + return ata_bmdma_port_start(ap); 211 209 } 212 210 213 211 static struct scsi_host_template pacpi_sht = {