diff options
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 2 | ||||
-rw-r--r-- | include/scsi/libsas.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 0829b55c64d2..adc47d481f97 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -500,7 +500,7 @@ static int sas_execute_task(struct sas_task *task, void *buffer, int size, | |||
500 | goto ex_err; | 500 | goto ex_err; |
501 | } | 501 | } |
502 | wait_for_completion(&task->completion); | 502 | wait_for_completion(&task->completion); |
503 | res = -ETASK; | 503 | res = -ECOMM; |
504 | if (task->task_state_flags & SAS_TASK_STATE_ABORTED) { | 504 | if (task->task_state_flags & SAS_TASK_STATE_ABORTED) { |
505 | int res2; | 505 | int res2; |
506 | SAS_DPRINTK("task aborted, flags:0x%x\n", | 506 | SAS_DPRINTK("task aborted, flags:0x%x\n", |
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 8aeaad95242c..aefd865a5788 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c | |||
@@ -96,7 +96,7 @@ static int smp_execute_task(struct domain_device *dev, void *req, int req_size, | |||
96 | } | 96 | } |
97 | 97 | ||
98 | wait_for_completion(&task->completion); | 98 | wait_for_completion(&task->completion); |
99 | res = -ETASK; | 99 | res = -ECOMM; |
100 | if ((task->task_state_flags & SAS_TASK_STATE_ABORTED)) { | 100 | if ((task->task_state_flags & SAS_TASK_STATE_ABORTED)) { |
101 | SAS_DPRINTK("smp task timed out or aborted\n"); | 101 | SAS_DPRINTK("smp task timed out or aborted\n"); |
102 | i->dft->lldd_abort_task(task); | 102 | i->dft->lldd_abort_task(task); |
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 93248cd48373..a075f130303c 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -91,8 +91,6 @@ enum discover_event { | |||
91 | 91 | ||
92 | /* ---------- Expander Devices ---------- */ | 92 | /* ---------- Expander Devices ---------- */ |
93 | 93 | ||
94 | #define ETASK 0xFA | ||
95 | |||
96 | #define to_dom_device(_obj) container_of(_obj, struct domain_device, dev_obj) | 94 | #define to_dom_device(_obj) container_of(_obj, struct domain_device, dev_obj) |
97 | #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ | 95 | #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ |
98 | attr) | 96 | attr) |