diff options
author | Tejun Heo <htejun@gmail.com> | 2008-04-07 12:25:35 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:25 -0400 |
commit | 2a0c15ca39f5881aa1b472ca856bb7a2e584ece7 (patch) | |
tree | 28fe9136db8016720c272ba39df3a3b43a9715e2 /drivers/ata/sata_sil24.c | |
parent | e50e3ce5e70e36e6069a8cc8292df76058fa9e23 (diff) |
libata: kill dead code paths in reset path
Some code paths which had been made obsolete by recent reset
simplification were still around. Kill them.
* ata_eh_reset() checked for ATA_DEV_UNKNOWN to determine
classification failure. This is no longer applicable.
* ata_do_reset() should convert ATA_DEV_UNKNOWN to ATA_DEV_NONE
regardless of reset result (e.g. -EAGAIN).
* LLDs don't need to convert ATA_DEV_UNKNOWN to ATA_DEV_NONE.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_sil24.c')
-rw-r--r-- | drivers/ata/sata_sil24.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 068789361895..20757fa6115d 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -693,9 +693,6 @@ static int sil24_softreset(struct ata_link *link, unsigned int *class, | |||
693 | sil24_read_tf(ap, 0, &tf); | 693 | sil24_read_tf(ap, 0, &tf); |
694 | *class = ata_dev_classify(&tf); | 694 | *class = ata_dev_classify(&tf); |
695 | 695 | ||
696 | if (*class == ATA_DEV_UNKNOWN) | ||
697 | *class = ATA_DEV_NONE; | ||
698 | |||
699 | out: | 696 | out: |
700 | DPRINTK("EXIT, class=%u\n", *class); | 697 | DPRINTK("EXIT, class=%u\n", *class); |
701 | return 0; | 698 | return 0; |