]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libata-eh: ata_eh_followup_srst_needed() does not need 'classes' parameter
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 9 Aug 2011 19:25:50 +0000 (23:25 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 13 Sep 2011 20:19:30 +0000 (16:19 -0400)
... since it does not use it.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c

index ed16fbedaabd78020044996a70f4f4ad1d8879c8..c021186736e9328cdc8c5de33ea1349177613ef9 100644 (file)
@@ -2532,8 +2532,7 @@ static int ata_do_reset(struct ata_link *link, ata_reset_fn_t reset,
        return reset(link, classes, deadline);
 }
 
-static int ata_eh_followup_srst_needed(struct ata_link *link,
-                                      int rc, const unsigned int *classes)
+static int ata_eh_followup_srst_needed(struct ata_link *link, int rc)
 {
        if ((link->flags & ATA_LFLAG_NO_SRST) || ata_link_offline(link))
                return 0;
@@ -2726,7 +2725,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
 
                /* perform follow-up SRST if necessary */
                if (reset == hardreset &&
-                   ata_eh_followup_srst_needed(link, rc, classes)) {
+                   ata_eh_followup_srst_needed(link, rc)) {
                        reset = softreset;
 
                        if (!reset) {