Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62697
b: refs/heads/master
c: 35a7f2f
h: refs/heads/master
i:
  62695: b13c79d
v: v3
  • Loading branch information
Darrick J. Wong authored and James Bottomley committed Jul 18, 2007
1 parent 0e31445 commit d58f78d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3eb7a51a3ae0ed0227e051ecf75199fccbb4cc73
refs/heads/master: 35a7f2f698d309cc50d98e56312dd907427b7ba4
10 changes: 4 additions & 6 deletions trunk/drivers/scsi/libsas/sas_ata.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void sas_ata_task_done(struct sas_task *task)

static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
{
int res = -ENOMEM;
int res;
struct sas_task *task;
struct domain_device *dev = qc->ap->private_data;
struct sas_ha_struct *sas_ha = dev->port->ha;
Expand All @@ -135,7 +135,7 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)

task = sas_alloc_task(GFP_ATOMIC);
if (!task)
goto out;
return AC_ERR_SYSTEM;
task->dev = dev;
task->task_proto = SAS_PROTOCOL_STP;
task->task_done = sas_ata_task_done;
Expand Down Expand Up @@ -187,12 +187,10 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
SAS_DPRINTK("lldd_execute_task returned: %d\n", res);

sas_free_task(task);
if (res == -SAS_QUEUE_FULL)
return -ENOMEM;
return AC_ERR_SYSTEM;
}

out:
return res;
return 0;
}

static u8 sas_ata_check_status(struct ata_port *ap)
Expand Down

0 comments on commit d58f78d

Please sign in to comment.