From: Tejun Heo Date: Wed, 26 Jul 2006 06:59:26 +0000 (+0900) Subject: [PATCH] ahci: simplify ahci_start_engine() X-Git-Tag: v2.6.19-rc1~1262^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f5920567bfabbd1be26112a31c44652b6587394;p=pandora-kernel.git [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 Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed