Patchwork libata-eh: ata_eh_followup_srst_needed() does not need 'classes' parameter

login
register
mail settings
Submitter Sergei Shtylyov
Date Aug. 9, 2011, 7:25 p.m.
Message ID <201108092325.50800.sshtylyov@ru.mvista.com>
Download mbox | patch
Permalink /patch/109269/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Sergei Shtylyov - Aug. 9, 2011, 7:25 p.m.
... since it does not use it.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

---
The patch is against the recent Linus' tree.

 drivers/ata/libata-eh.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

Index: linux-2.6/drivers/ata/libata-eh.c
===================================================================
--- linux-2.6.orig/drivers/ata/libata-eh.c
+++ linux-2.6/drivers/ata/libata-eh.c
@@ -2532,8 +2532,7 @@  static int ata_do_reset(struct ata_link 
 	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, 
 
 		/* 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) {