]> err.no Git - linux-2.6/commit
libata: cosmetic clean up / reorganization of ata_eh_reset()
authorTejun Heo <htejun@gmail.com>
Wed, 31 Oct 2007 01:17:03 +0000 (10:17 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 3 Nov 2007 12:46:54 +0000 (08:46 -0400)
commit416dc9ed206bba09807300ee5f155a81cebbd4a1
tree483a86db1dbcdb443962f9597531ea0541ef61e6
parentcd955463bb4e96cfec18a0e5b6887c6797fb821d
libata: cosmetic clean up / reorganization of ata_eh_reset()

Clean up and reorganize ata_eh_reset() to ease further changes.

* Cache ARRAY_SIZE(ata_eh_reset_timeouts) in @max_tries.
* Cache link->flags in @lflags.
* Move failure handling block to the end of the function and unnest
  both success and failure handling blocks.

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