libata: fix device iteration bugs
authorTejun Heo <tj@kernel.org>
Mon, 27 Oct 2008 10:59:23 +0000 (19:59 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 28 Oct 2008 03:55:12 +0000 (23:55 -0400)
There were several places where only enabled devices should be
iterated over but device enabledness wasn't checked.

* IDENTIFY data 40 wire check in cable_is_40wire()
* xfer_mode/ncq_enabled saving in ata_scsi_error()
* DUBIOUS_XFER handling in ata_set_mode()

While at it, reformat comments in cable_is_40wire().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found