OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d4a96
)
scsi: libsas: Remove duplicated setting for task->task_state_flags
author
Xiang Chen
<chenxiang66@hisilicon.com>
Fri, 11 Feb 2022 06:42:56 +0000
(14:42 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 11 Feb 2022 22:13:29 +0000
(17:13 -0500)
Task->task_state_flags is already set in function sas_alloc_task(), so
remove duplicated setting.
Link:
https://lore.kernel.org/r/1644561778-183074-3-git-send-email-chenxiang66@hisilicon.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_ata.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/libsas/sas_ata.c
b/drivers/scsi/libsas/sas_ata.c
index
a315715
..
8dbd5a7
100644
(file)
--- a/
drivers/scsi/libsas/sas_ata.c
+++ b/
drivers/scsi/libsas/sas_ata.c
@@
-209,7
+209,6
@@
static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
}
task->scatter = qc->sg;
task->ata_task.retry_count = 1;
- task->task_state_flags = SAS_TASK_STATE_PENDING;
qc->lldd_task = task;
task->ata_task.use_ncq = ata_is_ncq(qc->tf.protocol);