aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2011-08-09 15:25:50 -0400
committerJeff Garzik <jgarzik@redhat.com>2011-10-08 00:07:15 -0400
commite8411fbad67a6fe3f989cf6391df7c72bf4a1f9e (patch)
tree7c412654e5918193e4fb3fbd409ed2f77270786d /drivers/ata/libata-eh.c
parentfc8cc1d5b192b829b39ca534e6273a05f10cee79 (diff)
libata-eh: ata_eh_followup_srst_needed() does not need 'classes' parameter
... since it does not use it. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index ed16fbedaabd..c021186736e9 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2532,8 +2532,7 @@ static int ata_do_reset(struct ata_link *link, ata_reset_fn_t reset,
2532 return reset(link, classes, deadline); 2532 return reset(link, classes, deadline);
2533} 2533}
2534 2534
2535static int ata_eh_followup_srst_needed(struct ata_link *link, 2535static int ata_eh_followup_srst_needed(struct ata_link *link, int rc)
2536 int rc, const unsigned int *classes)
2537{ 2536{
2538 if ((link->flags & ATA_LFLAG_NO_SRST) || ata_link_offline(link)) 2537 if ((link->flags & ATA_LFLAG_NO_SRST) || ata_link_offline(link))
2539 return 0; 2538 return 0;
@@ -2726,7 +2725,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
2726 2725
2727 /* perform follow-up SRST if necessary */ 2726 /* perform follow-up SRST if necessary */
2728 if (reset == hardreset && 2727 if (reset == hardreset &&
2729 ata_eh_followup_srst_needed(link, rc, classes)) { 2728 ata_eh_followup_srst_needed(link, rc)) {
2730 reset = softreset; 2729 reset = softreset;
2731 2730
2732 if (!reset) { 2731 if (!reset) {