libata: reorganize ata_eh_reset() no reset method path
commit932648b007de76badc61c1b13d7282288dbe887e
authorTejun Heo <htejun@gmail.com>
Sun, 18 May 2008 16:15:06 +0000 (19 01:15 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 19 May 2008 21:51:47 +0000 (19 17:51 -0400)
tree3a3c00f6068f530632012ee3a6aaccedbe1158ba
parent0cbf0711a1ebcc4d3aea8e11def684afc2c07ef8
libata: reorganize ata_eh_reset() no reset method path

Reorganize ata_eh_reset() such that @prereset() is called even when no
reset method is available and if block is used instead of goto to skip
actual reset.  This makes no reset case behave better (readiness wait)
and future changes easier.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c