diff options
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 8e6c78ac70f8..15499522e642 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -1889,11 +1889,6 @@ int ata_sff_softreset(struct ata_link *link, unsigned int *classes, | |||
1889 | 1889 | ||
1890 | DPRINTK("ENTER\n"); | 1890 | DPRINTK("ENTER\n"); |
1891 | 1891 | ||
1892 | if (ata_link_offline(link)) { | ||
1893 | classes[0] = ATA_DEV_NONE; | ||
1894 | goto out; | ||
1895 | } | ||
1896 | |||
1897 | /* determine if device 0/1 are present */ | 1892 | /* determine if device 0/1 are present */ |
1898 | if (ata_devchk(ap, 0)) | 1893 | if (ata_devchk(ap, 0)) |
1899 | devmask |= (1 << 0); | 1894 | devmask |= (1 << 0); |
@@ -1919,7 +1914,6 @@ int ata_sff_softreset(struct ata_link *link, unsigned int *classes, | |||
1919 | classes[1] = ata_sff_dev_classify(&link->device[1], | 1914 | classes[1] = ata_sff_dev_classify(&link->device[1], |
1920 | devmask & (1 << 1), &err); | 1915 | devmask & (1 << 1), &err); |
1921 | 1916 | ||
1922 | out: | ||
1923 | DPRINTK("EXIT, classes[0]=%u [1]=%u\n", classes[0], classes[1]); | 1917 | DPRINTK("EXIT, classes[0]=%u [1]=%u\n", classes[0], classes[1]); |
1924 | return 0; | 1918 | return 0; |
1925 | } | 1919 | } |