ahci: fix engine reset failed message

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, December 7, 2007 - 5:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=994056...
Commit:     994056d7aa884c742f58e2f2c17305bb01bf14e7
Parent:     2c5ea0f2d8c7d4883dd0d8ec3c7e3f3640b4f814
Author:     Tejun Heo <htejun@gmail.com>
AuthorDate: Thu Dec 6 15:02:48 2007 +0900
Committer:  Jeff Garzik <jeff@garzik.org>
CommitDate: Fri Dec 7 15:27:53 2007 -0500

    ahci: fix engine reset failed message
    
    There isn't much point in reporting -EOPNOTSUPP as failure.  Also the
    message was missing newline.
    
    Signed-off-by: Tejun Heo <htejun@gmail.com>
    Signed-off-by: Jeff Garzik <jeff@garzik.org>
---
 drivers/ata/ahci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 4688dbf..588ab2f 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1271,9 +1271,9 @@ static int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 
 	/* prepare for SRST (AHCI-1.1 10.4.1) */
 	rc = ahci_kick_engine(ap, 1);
-	if (rc)
+	if (rc && rc != -EOPNOTSUPP)
 		ata_link_printk(link, KERN_WARNING,
-				"failed to reset engine (errno=%d)", rc);
+				"failed to reset engine (errno=%d)\n", rc);
 
 	ata_tf_init(link->device, &tf);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ahci: fix engine reset failed message, Linux Kernel Mailing List..., (Fri Dec 7, 5:59 pm)