diff mbox series

[2/4] scsi: libsas: Remove duplicated setting for task->task_state_flags

Message ID 1644561778-183074-3-git-send-email-chenxiang66@hisilicon.com
State New
Headers show
Series Some small cleanups for scsi/libsas | expand

Commit Message

chenxiang Feb. 11, 2022, 6:42 a.m. UTC
From: Xiang Chen <chenxiang66@hisilicon.com>

Task->task_state_flags is already set in function sas_alloc_task(), so
remove duplicated setting.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: John Garry <john.garry@huawei.com>
---
 drivers/scsi/libsas/sas_ata.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
index a315715b3622..8dbd5a771824 100644
--- 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);