ahci: fix engine reset failed message
authorTejun Heo <htejun@gmail.com>
Thu, 6 Dec 2007 06:02:48 +0000 (15:02 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 7 Dec 2007 20:27:53 +0000 (15:27 -0500)
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

index 4688dbf2d1110d7b31ab4809e1de621721fd0456..588ab2fd59e7dcb25a4e793bb504080372bd2d4b 100644 (file)
@@ -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);