summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-07-26 15:59:26 +0900
committerJeff Garzik <jeff@garzik.org>2006-07-29 04:01:31 -0400
commit9f5920567bfabbd1be26112a31c44652b6587394 (patch)
tree27e06539d48f05b85693ba2e9854ebf9a5a4abd7 /drivers/scsi/libata-core.c
parentd8fcd116d203dfe2f6c272d0cd67724b172f1bc2 (diff)
downloadop-kernel-dev-9f5920567bfabbd1be26112a31c44652b6587394.zip
op-kernel-dev-9f5920567bfabbd1be26112a31c44652b6587394.tar.gz
[PATCH] ahci: simplify ahci_start_engine()
Simplify ahci_start_engine() by killing prerequisite condition checks. Rationales are.. * No user checks error return from ahci_start_engine() * Code flow guarantees the prerequisite conditions unless the controller is malfunctioning. In such cases, the driver had chances to learn about the problem _before_ calling this function. * Closely related to the above two, driver calls into this function even when prerequisites fail hoping for the best. Basically, ahci_start_engine() should only do the operation itself. It isn't the right place to check for prerequisites. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Zhao, Forrest <forrest.zhao@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-core.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud